[Fontconfig] Re: Structure of cache files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le mercredi 05 octobre 2005 ? 10:44 -0700, Keith Packard a ?crit :
> I think the architectural neutrality isn't the real issue here, but
> rather the lack of formal package management for these files.

Both are issues. The need to generate cache files for all architectures
is a waste of disk space and doesn't account for the way packaging
systems work.

> I suggest that allow each configured font directory to be mirrored into
> the /var/cache hierarchy and store the cache files there; essentially
> doing a directory prefix mapping (/usr/share/fonts
> -> /var/cache/fontconfig) and appending the rest of the path normally.
> This will allow the existing naming mechanisms to be used as-is.

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 ?

> Directories which do not have such a mapping (~/.fonts) will be handled
> as they are today, with cache files stored in the directories
> themselves.

> Should I give this a try? Does it seem like a good solution?
> 
> If we do this, what would you think about removing the
> whole /var/cache/fontconfig heirarchy when fontconfig was purged?

Yes, that would be mandated, just like for any /var/cache hierarchy.

Regards,
-- 
 .''`.           Josselin Mouette        /\./\
: :' :           josselin.mouette@xxxxxxxxxxxx
`. `'                        joss@xxxxxxxxxx
  `-  Debian GNU/Linux -- The power of freedom
-------------- 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/20051009/4ddf1409/attachment.pgp

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux