[Fontconfig] Re: fc-cache sometimes looses fonts

James Cloos cloos at jhcloos.com
Tue Oct 25 10:09:46 EST 2005


I just saw a probably similar symptom.

It took a bit of thinking to figure out what I was seeing, but
inspiration eventually struck.  It looks like, given an absolute
path named $foo, then:

      :; cd $foo && fc-cache -f .

results in different cache files than:

      :; fc-cache -f $foo

In the former case the paths in the cache files are relative to $foo,
in the latter they are absolute.  

Ie, I got paths like:

  "./GhostPCL/URW_Fonts/A028-Med.ttf"

where I should have gotten:

  "/usr/local/share/fonts/GhostPCL/URW_Fonts/A028-Med.ttf"

when I ran 'fc-cache -fv .' in /usr/local/share/fonts.  Re-running
with 'fc-cache -fv /usr/local/share/fonts' got the correct results.

-JimC
-- 
James H. Cloos, Jr. <cloos at jhcloos.com>



More information about the Fontconfig mailing list