[Fontconfig] Re: Strange behaviour of fc-match of fontconfig current cvs (2.3.93).

Mike FABIAN mfabian at suse.de
Mon Jan 9 05:55:14 PST 2006


Patrick Lam <plam at MIT.EDU> さんは書きました:

> I've committed this patch.  I hope it's alright; I couldn't see anything
> wrong with it.  If I understand correctly, the crux of the correctness
> issue is the change of
>
> 	score += v2_best_score;
>
> to
>
> 	v = score;
>
> (which would be score = v2_best_score in the old code).
>
> and the rest is a performance optimization.  Is that right?  Could
> someone verify that this change alone fixes the bug?

I cannot find exactly the two lines you mention above.

There is a similar part in Zhe Su's patch though which I have attached
here.

Applying *only* this part does *not* solve the problem, actually
it makes it worse:

mfabian at magellan:/var/tmp/abuild/x86_64$ LC_ALL=zh_CN.UTF-8 fc-match 方正楷体
ethio24f-uni.bdf: "ethio24f-uni" "Regular"
mfabian at magellan:/var/tmp/abuild/x86_64$ LC_ALL=zh_CN.UTF-8 fc-match FZSongTi
ethio24f-uni.bdf: "ethio24f-uni" "Regular"
mfabian at magellan:/var/tmp/abuild/x86_64$ LANG=ja_JP.UTF-8 fc-match sans
ethio24f-uni.bdf: "ethio24f-uni" "Regular"

Zhe Su's complete patch does really solve the problem though.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ttt.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20060109/19cda094/ttt.bin
-------------- next part --------------

-- 
Mike FABIAN   <mfabian at suse.de>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。


More information about the Fontconfig mailing list