LRN lrn1986 at gmail.com
Fri Apr 12 20:12:51 PDT 2013

Hash: SHA1

On 04.04.2013 02:40, Raimund Steger wrote:
> LRN wrote:
>> What was the rationale behind putting fontconfig cache into
>> temporary directory?
> WINDOWSTEMPDIR_FONTCONFIG_CACHE is only one possible value (aside
> from a real path) for <cachedir> elements on Win32. Current
> fontconfig also supports LOCAL_APPDATA_FONTCONFIG_CACHE; see 
> http://thread.gmane.org/gmane.comp.fonts.fontconfig/3937.
WINDOWSTEMPDIR_FONTCONFIG_CACHE is the default, that's why it caught
my attention.

>> On *nix it resides in /var/cache/fontconfig.
> On Unix, users have cache directories too, as they can use their
> own fonts and/or fontconfig versions.
They can, but as far as Debian goes, dpkg postinst and postrm scripts
only know of one cache - /var/cache/fontconfig, and is set to trigger
cache re-generation when one of these directories
changes (apparently).
Users can, obviously, whip up anything they like, but that does not
seem to be the "usual" case.

> System-wide fontconfig installations are not really widely used on
>  Windows although a sysadmin could certainly provide such a thing
> (maybe using a custom sysconfdir or fontconfig's feature to load
> its configuration from location relative to the DLL on Windows).
Yes, i'm planning to implement a feature like that. If everything goes
well, expect a patch in foreseeable future.
It will add another special value - RELATIVE_SPECIAL_FONTCONFIG_CACHE,
which will make fc take its location from the DLL, guess where root
directory is (assuming that fc dll is in root/bin), look up
root/var/cache directory, and use root/var/cache/fontconfig as the
cache file.

>> no decent package manager, and i don't think that applications
>> keep track of fonts. Which means that it's important to not to
>> lose fontcache.
> fontconfig updates the cache automatically, applications should not
> need to do anything.

Uh-oh. That is why VLC had loading time of, like, 2 minutes after its
first install. That is, until developers figured out, that they need
to generate fc cache at installation time, from the installer.

Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/


More information about the Fontconfig mailing list