View Single Post

   
  #5 (permalink)  
Old 02-21-2008, 05:38 AM
Thomas Ronayne
 
Posts: n/a
Default Re: Directories scanned by fc-cache

Niki Kovacs wrote:
> When I simply copy over the fonts (Vera*.ttf files) in /usr/share/fonts/
> TTF/ and run fc-cache -f, fonts are added OK to the system. I can check
> that by opening Openoffice.org, and there they are. Except Google Earth
> doesn't find them! Must be looking for a bitstream-something directory
> in /usr/share/fonts. I checked this on a working CentOS 5.0 install,
> where the bitstream fonts are all in /usr/share/fonts/bitstream-vera/,
> and Google Earth starts without complaining and uses them correctly.

Did you run mkfontscale and mkfontdir in the TTF directory?

The Bitstream Vera files on my system are /usr/share/fonts/TTF
(Vera.ttf VeraBd.ttf VeraMoBI.ttf VeraMoIt.ttf VeraSe.ttf
VeraBI.ttf VeraIt.ttf VeraMoBd.ttf VeraMono.ttf VeraSeBd.ttf);
copied them into the directory, ran mkfontscale then mkfontdir and
Google Earth is a happy camper.

If you cd /usr/share/fonts, you can fc-cache -f TTF which will update
the cache files (or you could fc-cache -f /usr/share/fonts/TTF and
accomplish the same thing). You do not need to edit any cache files
manually.

Hope this helps.
Reply With Quote