Re: WINDOWSTEMPDIR_FONTCONFIG_CACHE

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

 



ChangeLog please?

On Mon, Apr 6, 2015 at 8:53 PM, LRN <lrn1986@xxxxxxxxx> wrote:
On 13.04.2013 6:12, LRN wrote:
> On 04.04.2013 02:40, Raimund Steger wrote:
>> LRN wrote:
>>> 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
> /usr/share/fonts
> /usr/share/ghostscript/fonts
> /usr/share/texmf/fonts
> 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.
>

Well, it's been a year, and here i am. Foreseeable future :)

Anyway, here's the patch.

It checks for the cache path starting with '/' and then prepends the
installation prefix (which is already figured out elsewhere in fccfg.c) to it.
This way each fontconfig installation has its own cache, plus there's a
user-specific cache.

This way fc-cache -v outputs:

F:/e43/mingw/var/cache/fontconfig: cleaning cache directory
C:/Users/LRN/.cache/fontconfig: not cleaning non-existent cache directory
C:/Users/LRN/.fontconfig: not cleaning non-existent cache directory

instead of:

C:/Users/LRN/AppData/Local/fontconfig/cache: cleaning cache directory
C:/Users/LRN/.cache/fontconfig: not cleaning non-existent cache directory
C:/Users/LRN/.fontconfig: not cleaning non-existent cache directory

(where F:/e43/mingw is the installation prefix).

FC needs to be configured with
--with-cache-dir='${localstatedir}/cache/${PACKAGE}', because otherwise
LOCAL_APPDATA_FONTCONFIG_CACHE will become the default.

--
O< ascii ribbon - stop html email! - www.asciiribbon.org

_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig




--
Akira TAGOH
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

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

  Powered by Linux