[Fontconfig] Re: Structure of cache files

Keith Packard keithp at keithp.com
Tue Dec 6 20:37:46 PST 2005


On Tue, 2005-12-06 at 23:04 -0500, Patrick Lam wrote:
> Josselin Mouette wrote:
> > It would indeed solve both problems simultaneously.
> > Maybe, for performance, would it be better to
> > use /var/cache/fontconfig/$hash.cache files, $hash being generated from
> > the original pathname ?
> 
> How does the attached patch look?  Is fontconfig supposed to be
> responsible for creating /var/cache/fontconfig, or can it rely on the
> packager?  Also is hardcoding /var/cache/fontconfig the right thing?

You want to use a cryptographically secure hash to avoid collisions, as
long as you survive collisions, you can use MD5, SHA1 or SHA256 as you
please.

-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/20051206/c0174a87/attachment.pgp


More information about the Fontconfig mailing list