[Fontconfig] Creating cachedir

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

 



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.

pat


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

  Powered by Linux