[Fontconfig] Re: [patch]: mmapping FontConfig data structures
Patrick Lam
plam at MIT.EDU
Fri Jun 10 14:25:45 EST 2005
I've incorporated TMPDIR. ~/.fonts.conf and ~/.fonts seem to be defined
in the global fonts.conf file, not hardcoded, so I've avoided that for
now. The new patch is at
http://plam.csail.mit.edu/~plam/tmp/fontconfig-050609-tmpdir.diff
pat
James Cloos wrote:
> 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
More information about the Fontconfig
mailing list