[Fontconfig] commit (branch): read and write cache files.

Keith Packard keithp at keithp.com
Tue Jul 26 03:16:44 EST 2005


On Mon, 2005-07-25 at 00:15 -0400, Patrick Lam wrote:

> Currently it writes the mmap file to /tmp, but this will change soon.  I
> noticed that currently fontconfig writes cache files to directories
> containing fonts, plus a global one on a per-user basis in
> ~/.fonts.cache.  Is there an appropriate place to put a global cache file?

I was thinking we'd continue to use per-directory caches unless you
don't think that will work. The reason here is that each user can add
directories to the set, and having only a global cache means that
everyone would have a ~/.fonts.cache-2 file. Right now, the local caches
are significantly more expensive to use as many additional stat(2) calls
are needed to validate the cache.

If we need a single global cache, it would need to live in /var
somewhere, which is something of a pain as there isn't strong concensus
on what /var should look like these days. A quick read through the LSB
might provide some suggestions.

-keith

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20050725/88e2b3d1/attachment.pgp


More information about the Fontconfig mailing list