View Single Post

   
  #2 (permalink)  
Old 02-21-2008, 05:37 AM
Peter
 
Posts: n/a
Default Re: Directories scanned by fc-cache

On Thu, 11 Oct 2007 09:22:32 +0000, Niki Kovacs wrote:

> Hi,
>
> How do I (re)define the list of directories scanned by fc-cache -f?
>
> I have the following problem: I want to add Bitstream Vera Fonts, so
> Google Earth can find and use them.
>
> 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.
>
> But when I create the /usr/share/fonts/bitstream-vera/ directory and put
> my Vera*.ttf fonts in it, fc-cache -f ignores the directory.
>
> What can I do to tell fc-cache to scan it?
>
> cheers,
>
> Niki



I run GE and do not have this problem so I am not sure why it does not
work for you. You CAN try:

add your new directory to xorg.conf

Section "Files"
RgbPath "/usr/X11/lib/X11/rgb"
ModulePath "/usr/X11/lib/xorg/modules"
FontPath "/usr/X11/lib/X11/fonts/local/"
FontPath "/usr/X11/lib/X11/fonts/misc/"
FontPath "/usr/X11/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/X11/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11/lib/X11/fonts/Type1/"
FontPath "/usr/X11/lib/X11/fonts/OTF/"
FontPath "/usr/X11/lib/X11/fonts/TTF/"
FontPath "/usr/X11/lib/X11/fonts/CID/"
FontPath "/usr/X11/lib/X11/fonts/Speedo/"
FontPath "/usr/X11/lib/X11/fonts/75dpi/"
FontPath "/usr/X11/lib/X11/fonts/100dpi/"
FontPath "/usr/X11/lib/X11/fonts/cyrillic/"

May also want to run mkfontscale.

--
Peter
Reply With Quote