Re: Patch: fix for fc-cache with relative path

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

 



Patrick Lam <plam@xxxxxxx> さんは書きました:

> 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@xxxxxxx> さんは書きました:
>>
>>> No new cache file has been generated:
>>>
>>>     mfabian@magellan:/usr/X11R6/lib/X11/fonts/Type1$ ls /var/cache/fontconfig/
>>>     d6867d8c7d183335b46263581b96fdc1.cache-2  stamp
>>>     mfabian@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@xxxxxxx>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。

_______________________________________________
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