[Fontconfig] Re: [patch]: mmapping FontConfig data structures

James Cloos cloos at jhcloos.com
Fri Jun 10 14:15:52 EST 2005


Cool idea.

[SIGH.  I had my reply all ready to send, and then skimmed through the
patch and discovered that much of it was unnecessary -- the code
already does that.... :) ]

The environmental TMPDIR is often used to suggest a tmp directory,
but fontconfig should probably also look for its own env.  Perhaps
FC_TMPDIR first, then TMPDIR, then /tmp.  It already has at least
FC_DEBUG, so FC_TMPDIR -- or FC_TMP -- is a reasonable extension.

Another possibility is to replicate the idea of ~/.fonts.conf
and ~/.fonts by using ~/.fonts.mmap.  If that is not writeable
then you'll either have to fall back to TMPDIR and /tmp, or
fall back to not using an mmap file.

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







More information about the Fontconfig mailing list