[Fontconfig] Re: Patch: fix for fc-cache with relative path
mfabian at suse.de
Fri Jan 13 06:03:19 PST 2006
Patrick Lam <plam at MIT.EDU> さんは書きました:
> That looks like it's probably correct. I'll look at the various
> patches floating around tomorrow, I think...
Probably correct. But don't forget my second mail where I noticed
that this patch has the flaw of making the first run of fc-cache
*very* slow because /root/.fonts.cache-2 is generated first
and then the cache files in /var/cache/fontconfig.
My only idea at the moment is to add a parameter to the
FcInitLoadConfigAndFonts() function call which can be true or false
and if it is false no caches are generated, only the list of font
directories is updated.
Or something like this.
Unfortunately I am very busy with other stuff now and cannot think
about this problem now.
> On Thu, 12 Jan 2006, Mike FABIAN wrote:
>> Mike FABIAN <mfabian at suse.de> さんは書きました:
>>> No new cache file has been generated:
>>> mfabian at magellan:/usr/X11R6/lib/X11/fonts/Type1$ ls /var/cache/fontconfig/
>>> d6867d8c7d183335b46263581b96fdc1.cache-2 stamp
>>> mfabian at magellan:/usr/X11R6/lib/X11/fonts/Type1$
>>>>> -a similar problem happen when using : fc-cache /foo/bar and
>>>>> fc-cache /foo/bar/ : strings used to generate md5sum are not the same,
>>>>> resulting in different cache.
>>>>> The attached patch fixes the issue.
>>>> I've committed my patch.
>>> Hmm, that problem seems to persist as well:
>>> [ ... description how to reproduce ...]
>> I believe I can fix this with the attached patch:
Mike FABIAN <mfabian at suse.de> http://www.suse.de/~mfabian
More information about the Fontconfig