LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-07-2017, 12:45 PM   #1
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Rep: Reputation: 176Reputation: 176
Having difficulty installing (and understanding) fonts


I'm running Xubuntu 16.04 LTS. 64 bit computer. I recently got a photo editing software called Pixeluvo. When I install fonts to the .fonts folder while all the fonts show up in Libreoffice, only one of the font show up in Pixeluvo. Screenshot 214: what I installed in .fonts. #215 What shows up in Pixeluvo.

And exploring this I've found that fonts are stored all over the place and more often than not they don't all show up in either Pixeluvo or LibreOffice.

Another thing is I installed LinuxLibertine and all these fonts showed up in LO and in Pixeluvo. (you can see in #215 screenshot). I don't remember how I installed the LinuxLibertine but however I did it got it in both places.

And like in GIMP having eight million fonts I never use can be a time suck. Can I go into those file system folders and just delete the entire folders for things like Noto and Stix (which is like hieroglyphics)? See 216. (I have to admit I almost never touch the File System and am hesitant to do so without expert advice.)

Thanks.
Attached Thumbnails
Click image for larger version

Name:	Selection_214.png
Views:	14
Size:	146.1 KB
ID:	24715   Click image for larger version

Name:	Selection_215.png
Views:	14
Size:	34.4 KB
ID:	24716   Click image for larger version

Name:	Selection_216.png
Views:	12
Size:	35.2 KB
ID:	24717  
 
Old 04-07-2017, 12:48 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
did you update your ~/.fonts folder?

Code:
sudo fc-cache -fv ~/.fonts
or
sudo fc-cache -fv
as far as deleting them -- I'd move them off to somewhere else for safe keeping update fonts and see if something goes wrong, if yes then find out what fonts you may need to put back then do so. update fonts again.

Last edited by BW-userx; 04-07-2017 at 12:51 PM.
 
1 members found this post helpful.
Old 04-07-2017, 01:26 PM   #3
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by BW-userx View Post
did you update your ~/.fonts folder?

Code:
sudo fc-cache -fv ~/.fonts
or
sudo fc-cache -fv
as far as deleting them -- I'd move them off to somewhere else for safe keeping update fonts and see if something goes wrong, if yes then find out what fonts you may need to put back then do so. update fonts again.
Thanks BW. Good advice. Ran the command and got this:

gregory@gregory-GA-A55M-DS2:~/Desktop$ sudo fc-cache -fv ~/.fonts
[sudo] password for gregory:
/home/gregory/.fonts: caching, new cache contents: 39 fonts, 0 dirs
/var/cache/fontconfig: cleaning cache directory
/home/gregory/.cache/fontconfig: cleaning cache directory
/home/gregory/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded
gregory@gregory-GA-A55M-DS2:~/Desktop$


but I didn't get the fonts in Pixeluvo.

Both the fonts I want (Monteserrat and Roboto) are true type. Do you think I could make a folder for each of them and put the folders in the usr/share/fonts/truetype/ folder? (screenshot) Thanks.
Attached Thumbnails
Click image for larger version

Name:	Selection_220.png
Views:	7
Size:	107.5 KB
ID:	24718  
 
Old 04-07-2017, 02:39 PM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,809
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
How old a program is Pixeluvo? If it's rather young, its problem could be that ~/.fonts was deprecated some time back. Some apps, among which L.O., IIRC, do not rely on fontconfig, instead including their own font locating mechanisms. From the archlinux wiki
Quote:
The font paths initially known to Fontconfig are: /usr/share/fonts/, ~/.local/share/fonts (and ~/.fonts/, now deprecated).
I don't "install" many "extra" fonts. "Installed" fonts on my systems are whatever the installer installs, plus Droid and Linux Libertine if not included by default. Mostly when I add extra fonts, I copy the font files from their source into /usr/local/share/fonts/. That way, each "user" on my installations (all of which are in multiboot) has access to these extra fonts rather than each individual "user" needing a personal copy in ~/.local/share/fonts/.

I commonly find that running fc-cache isn't necessary after adding fonts to, or removing fonts from, /usr/local/share/fonts/, but I suppose that may depend on individual distros' fontconfig implementations, or maybe it's necessary if the individual files added are not in the root of any of the standard font paths.

You probably lost more than you gained by deleting Stix:
Quote:
Summary : STIX scientific and engineering fonts
Size : 845616
Description :
The mission of the Scientific and Technical Information Exchange (STIX) font
creation project is the preparation of a comprehensive set of fonts that serve
the scientific and engineering community in the process from manuscript
creation through final publication, both in electronic and print formats.
Here, Roboto is installed by default:
Quote:
Distribution: openSUSE Leap 42.1
# rpm -qa | grep oboto
google-roboto-fonts-20150820-1.1.noarch
# fc-match roboto
Roboto-Medium.ttf: "Roboto" "Medium"
# fc-list roboto
/usr/share/fonts/truetype/Roboto-BoldItalic.ttf: Roboto:style=Bold Italic
/usr/share/fonts/truetype/Roboto-ThinItalic.ttf: Roboto:style=Thin Italic
/usr/share/fonts/truetype/Roboto-Light.ttf: Roboto:style=Light
/usr/share/fonts/truetype/Roboto-Regular.ttf: Roboto:style=Regular
/usr/share/fonts/truetype/Roboto-Thin.ttf: Roboto:style=Thin
/usr/share/fonts/truetype/Roboto-Black.ttf: Roboto:style=Black
/usr/share/fonts/truetype/Roboto-LightItalic.ttf: Roboto:style=Light Italic
/usr/share/fonts/truetype/Roboto-Bold.ttf: Roboto:style=Bold
/usr/share/fonts/truetype/Roboto-Italic.ttf: Roboto:style=Italic
/usr/share/fonts/truetype/Roboto-BlackItalic.ttf: Roboto:style=Black Italic
/usr/share/fonts/truetype/Roboto-Medium.ttf: Roboto:style=Medium
/usr/share/fonts/truetype/Roboto-MediumItalic.ttf: Roboto:style=Medium Italic
I would expect apt to install fonts-roboto in the same location as rpm did on openSUSE.
 
1 members found this post helpful.
Old 04-07-2017, 07:44 PM   #5
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by mrmazda View Post
How old a program is Pixeluvo? If it's rather young, its problem could be that ~/.fonts was deprecated some time back. Some apps, among which L.O., IIRC, do not rely on fontconfig, instead including their own font locating mechanisms. From the archlinux wiki
I don't "install" many "extra" fonts. "Installed" fonts on my systems are whatever the installer installs, plus Droid and Linux Libertine if not included by default. Mostly when I add extra fonts, I copy the font files from their source into /usr/local/share/fonts/. That way, each "user" on my installations (all of which are in multiboot) has access to these extra fonts rather than each individual "user" needing a personal copy in ~/.local/share/fonts/.

I commonly find that running fc-cache isn't necessary after adding fonts to, or removing fonts from, /usr/local/share/fonts/, but I suppose that may depend on individual distros' fontconfig implementations, or maybe it's necessary if the individual files added are not in the root of any of the standard font paths.

You probably lost more than you gained by deleting Stix:


Here, Roboto is installed by default:

I would expect apt to install fonts-roboto in the same location as rpm did on openSUSE.

Thanks mrmazda. I don't know how old Pixeluvo is. http://www.pixeluvo.com/

Quote:
Mostly when I add extra fonts, I copy the font files from their source into /usr/local/share/fonts/.
This sounded good and I tried to do it but when I did, the "paste" was grayed out and I was unable to.

Quote:
You probably lost more than you gained by deleting Stix:
I didn't uninstall it yet. What would I be losing? I'm not a scientist. Most of their fonts are gobbledygook to me.
 
Old 04-07-2017, 09:13 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,809
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Quote:
Originally Posted by Gregg Bell View Post
This sounded good and I tried to do it but when I did, the "paste" was grayed out and I was unable to.
/usr/local/ is a local domain under control of the system administrator. Unless root alters its default permissions, you need root privileges to write there.

Quote:
I didn't uninstall it yet. What would I be losing? I'm not a scientist. Most of their fonts are gobbledygook to me.
The space Stix consumes on your system is trivial. It includes mostly glyphs missing from common font sets. Without Stix, when you open a web page with scientific or math formulas, you won't be seeing what the formulas are supposed to look like, regardless whether you might understand them.
 
1 members found this post helpful.
Old 04-07-2017, 10:45 PM   #7
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,809
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Quote:
Originally Posted by Gregg Bell View Post
I don't know how old Pixeluvo is. http://www.pixeluvo.com/
Based on a forum sample, it looks likely to be younger than the ~/.fonts deprecation, so may well have no way to know about any fonts contained there.
 
1 members found this post helpful.
Old 04-08-2017, 08:41 AM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Yoiu could try looking at its directory structure wherever that is to see what it has setup for itself.

ie.

/../../Pixeluvo/fonts

not saying it is there. but it will not hurt to look.
 
1 members found this post helpful.
Old 04-08-2017, 12:54 PM   #9
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by mrmazda View Post
/usr/local/ is a local domain under control of the system administrator. Unless root alters its default permissions, you need root privileges to write there.


The space Stix consumes on your system is trivial. It includes mostly glyphs missing from common font sets. Without Stix, when you open a web page with scientific or math formulas, you won't be seeing what the formulas are supposed to look like, regardless whether you might understand them.
I'll keep the Stix, thanks. I read the link. So that seems the way to go (pasting the fonts into /usr/local/share/fonts), but how do I get root privileges so I can paste them there? Thanks.
 
Old 04-08-2017, 12:57 PM   #10
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by BW-userx View Post
Yoiu could try looking at its directory structure wherever that is to see what it has setup for itself.

ie.

/../../Pixeluvo/fonts

not saying it is there. but it will not hurt to look.
Thanks BW but I couldn't find anything with .../Pixeluvo/fonts. See attachment for what a Pixeluvo search turned up.
Attached Thumbnails
Click image for larger version

Name:	Selection_222.png
Views:	9
Size:	60.0 KB
ID:	24728  
 
Old 04-08-2017, 01:49 PM   #11
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,809
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Quote:
Originally Posted by Gregg Bell View Post
how do I get root privileges so I can paste them there?
Either login as root (e.g. Ctrl-Alt-Fn) and open a file manager (e.g. mc, my own choice), or open a file manager using sudo from an X terminal.

*Everyone should have mc installed by default. If mc isn't installed, you should install it (e.g. 'sudo apt-get install mc').
 
1 members found this post helpful.
Old 04-08-2017, 02:46 PM   #12
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
When the contents of $HOME/.fonts/ change:

$ cd $HOME/.fonts/
$ mkfontscale
$ mkfontdir

When you start a new X session:

$ xset fp+ $HOME/.fonts/
$ xset fp rehash
$ fc-cache -f -v

Various ways to check that changes took:

$ xlsfonts
$ fc-list
$ xfontsel

One quirk with fc-list is that .pcf fonts need to be gzipped (.pcf.gz) or they don't show up (debian jessie) in fc-list, but will in xlsfonts. But xls names versus face names. Also bitmap fonts are disabled by default on many distros. Enabling bitmap fonts can cause firefox to crash depending on versions.

$ sudo dpkg-reconfigure fontconfig-config

To enable bitmap fonts or edit one of the /etc/fonts/ configuration files. Don't recall which one atm. Not likely to be an issue if using distro supplied fonts.

Last edited by Shadow_7; 04-08-2017 at 02:48 PM.
 
1 members found this post helpful.
Old 04-08-2017, 05:42 PM   #13
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by mrmazda View Post
Either login as root (e.g. Ctrl-Alt-Fn) and open a file manager (e.g. mc, my own choice), or open a file manager using sudo from an X terminal.

*Everyone should have mc installed by default. If mc isn't installed, you should install it (e.g. 'sudo apt-get install mc').
Thanks. That MC is amazing! I did read up about it but I had a few questions. To copy (see 224) do I just go with the defaults checked? I was concerned about 'with source mask' and 'using shell patterns.' (MC would really be helpful on a regular basis if I could trust it.) And #6 in the MC function keys is basically the same as "cut"?

And I was reading about MC and it said if copying directories the changes would be applied 'recursively.' I Googled and looked around but I still don't really know what recursively means.

And I plopped a couple of fonts (via MC) into /usr/local/share/fonts and unfortunately they do not show up in Pixeluvo.

I remembered that when I put the font LinuxLibertine (there are about seven of them) into LibreOffice via Synaptic Package Manager the LinuxLibertine fonts also showed up in Pixeluvo. So I Catfish file searched and found LinuxLibertine in /usr/share/doc and /usr/share bug. I took screenshots of the doc one because I figured it wouldn't be the bug one. (see 229 & 230). As you can see I didn't find the actual font ttf files.

So I'm at a dead end. Thanks for the help.
Attached Thumbnails
Click image for larger version

Name:	Selection_224.png
Views:	4
Size:	41.7 KB
ID:	24732   Click image for larger version

Name:	Selection_229.png
Views:	7
Size:	74.6 KB
ID:	24733   Click image for larger version

Name:	Selection_230.png
Views:	10
Size:	37.8 KB
ID:	24734  
 
Old 04-08-2017, 05:45 PM   #14
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by Shadow_7 View Post
When the contents of $HOME/.fonts/ change:

$ cd $HOME/.fonts/
$ mkfontscale
$ mkfontdir

When you start a new X session:

$ xset fp+ $HOME/.fonts/
$ xset fp rehash
$ fc-cache -f -v

Various ways to check that changes took:

$ xlsfonts
$ fc-list
$ xfontsel

One quirk with fc-list is that .pcf fonts need to be gzipped (.pcf.gz) or they don't show up (debian jessie) in fc-list, but will in xlsfonts. But xls names versus face names. Also bitmap fonts are disabled by default on many distros. Enabling bitmap fonts can cause firefox to crash depending on versions.

$ sudo dpkg-reconfigure fontconfig-config

To enable bitmap fonts or edit one of the /etc/fonts/ configuration files. Don't recall which one atm. Not likely to be an issue if using distro supplied fonts.
Thanks Shadow. That's good to know. So the idea is any time a font changes in $HOME/.fonts/ run those commands?
 
Old 04-08-2017, 06:07 PM   #15
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Code:
sudo fc-cache -fv ~/.fonts
This is a command I'd never run. Running as root in your home directory is calling for trouble, all files created/modified will be owned by root, this can cause weirdest errors when user started applications cannot write and modify these files.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
12.04 Browser fonts changed unexpectedly after installing new fonts and rebooting jdier Linux - Software 1 11-19-2012 11:51 AM
Difficulty in understanding nohup Command. sowraj Linux - Newbie 2 01-28-2010 01:59 AM
LXer: Linux vs. Windows: Understanding the Difficulty Divide LXer Syndicated Linux News 0 05-27-2008 08:41 PM
Difficulty installing wxPython aregmi Linux - Software 2 05-29-2007 04:33 PM
Difficulty in understanding Gins Programming 6 07-12-2006 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration