Cannot Find Recently Added Font?

Hello All,

My Computer:


**uname -a**
Linux mmartin.local 2.6.37.6-0.7-desktop #1 SMP PREEMPT 2011-07-21 02:17:24 +0200 i686 i686 i386 GNU/Linux

I just recently downloaded a font of .ttf format (truetype I believe). I tried adding the font to a couple of places but still can’t find it in any applications.
My goal is to use the font in GIMP. Even tried using it in Libre Writer, but still no luck.

I tried putting it in the following:
/home/mmartin/.fonts
/home/mmartin/.gimp-2.6
/usr/share/fonts/truetype

If I simply double click the “.ttf” file, it opens a window that shows all the letters in the font and the “Quick brown fox jumps…” sentence.
It also shows data about it like Name, Style, Type, Size, Version, etc… And there is a button on the bottom-right of the window that
says “Install Font”, and when I click it, it doesn’t seem like anything happens except the button becomes greyed out and says,
“Install Failed” (can barely read the greyed out text though).

Tried restarting after adding the file to the directories above but no luck either.

If anyone has any ideas, please feel free.

Thanks in Advance,
Matt

Hi
Update your font cache (for ~/.fonts);


fc-cache ~/.fonts

If you put them in the system directory /usr/share/fonts/truetype you
would need to run (as root user)


fonts-config


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 21:23, 3 users, load average: 0.15, 0.11, 0.12
GPU GeForce 8600 GTS Silent - Driver Version: 280.13

Hey Malcom, thanks for the reply.

Outstanding, worked like a charm.
I guess the font cache, and the font config doesn’t get built during boot/reboot?

Thanks again,
Matt

Hi
No, alas it’s a manual process…


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 1 day 13:16, 3 users, load average: 0.07, 0.10, 0.13
GPU GeForce 8600 GTS Silent - Driver Version: 280.13

Oh ok, no problem… Thanks for the info.

Thanks,
Matt

KDE users of course can install fonts in Personal Settings, and then there’s no need to manually refresh the font cache. You also get to choose between installation for user or system. For those with more complicated font requirements, I can also recommend Fontmatrix.

gminnerup,

Thanks for the response.
Unfortunately I use GNOME… I kinda now wish I had selected KDE when I did my initial installation, because it seems that KDE is much more “user friendly” and has much more fun gadgets you can use. But oh well no biggie.

I don’t usually care too much about font selection, but in this case I was making a business flier for a friend, and they wanted their company name in the font that is in their logo (understandably so). But all is well now, thanks for the info.

Thank Again,
Matt

Hi
The feature is also in Gnome, if you use Nautilus and browse to the
location of the font, then right click and select ‘open with font
viewer’ you have a button to install the font…


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 6 days 14:14, 4 users, load average: 0.77, 0.42, 0.30
GPU GeForce 8600 GTS Silent - Driver Version: 280.13

malcomlewis,

Yea your right… But when I tried that with the TrueType font I downloaded nothing happened. Quote below is from my Original Post:

If I simply double click the “.ttf” file, it opens a window that shows all the letters in the font and the “Quick brown fox jumps…” sentence.
It also shows data about it like Name, Style, Type, Size, Version, etc… And there is a button on the bottom-right of the window that
says “Install Font”, and when I click it, it doesn’t seem like anything happens except the button becomes greyed out and says,
“Install Failed” (can barely read the greyed out text though).

I didn’t try it with a different font though so not sure if it would have worked with another one.

Thanks,
Matt

Doesn’t ‘SuSEconfig’ rebuild the font-cache ? See


Executing /sbin/conf.d/SuSEconfig.fonts...
Creating fonts.{scale,dir} files .........
/etc/fonts/suse-font-dirs.conf unchanged
/etc/fonts/suse-hinting.conf unchanged
/etc/fonts/suse-bitmaps.conf unchanged
Creating cache files for fontconfig ................................
Creating 32bit cache files for fontconfig ................................
generating java font setup
Warning: cannot find a sans serif simplified Chinese font. Simplified Chinese in Java might not work.
Warning: cannot find a serif simplified Chinese font. Simplified Chinese in Java might not work.
Warning: cannot find a sans serif traditional Chinese font. Traditional Chinese in Java might not work.
Warning: cannot find a serif traditional Chinese font. Traditional Chinese in Java might not work.
writing /usr/lib64/jvm/jre/lib/fontconfig.SuSE.properties