[Fontconfig] Creating cachedir
plam at MIT.EDU
Mon Dec 19 18:45:10 PST 2005
Josselin Mouette wrote:
> Le lundi 12 décembre 2005 à 08:45 -0500, Patrick Lam a écrit :
>>How about just: if you can't create the cache file in
>>/var/cache/fontconfig, then create it in its original location? Then
>>when we try to open a cache file, we obviously need to try the original
>>location first. This is not quite as good as separating per-user and
>>root caches, but it may be good enough. Comments?
> This may become problematic if a cache file already exists in the font
> directory. In this case, a new cache file will be created in /var/cache,
> but won't be used as the other location is tried first.
In that case, the directory effectively won't have a per-directory cache
if the one in the font dir is stale. This is not a big disaster, as
fontconfig will simply place that directory in the global cache. It's
suboptimal, to be sure, but I can't think of a better solution.
More information about the Fontconfig