[Fontconfig] Re: Strange behaviour of fc-match of fontconfig
current cvs (2.3.93).
Mike FABIAN
mfabian at suse.de
Tue Dec 27 09:36:34 PST 2005
Zhe Su <james.su at gmail.com> ããã¯æ¸ãã¾ãã:
> Hi,
> Try match æ¹æ£æ¥·ä½ :-)
Yes, this doesn't work for me either:
mfabian at magellan:~$ LC_ALL=zh_CN.UTF-8 fc-match æ¹æ£æ¥·ä½
FZSongTi.ttf: "FZSongTi" "Regular"
mfabian at magellan:~$ LC_ALL=zh_TW.UTF-8 fc-match æ¹æ£æ¥·ä½
FZMingTiB.ttf: "FZMingTiB" "Regular"
mfabian at magellan:~$ fc-list | grep æ¹æ£æ¥·ä½
FZKaiTi,æ¹æ£æ¥·ä½:style=Regular
mfabian at magellan:~$
> Regards
> James Su
>
> On 12/28/05, Mike FABIAN <mfabian at suse.de> wrote:
>> Zhe Su <james.su at gmail.com> ããã¯Âø¸¹ø¸¯è¼ç¿:
>>
>> > Hi,
>> > After upgrading to fontconfig 2.3.93, the behaviour of fc-match
>> > becomes very strange. First, fonts can't be matched by their localized
>> > names anymore. It's ok when using fontconfig 2.3.91 or earlier.
>> > Second, fc-match gives a different default font than the one I set in
>> > config file.
>> > I think these issues may be caused by the updating of fcmatch.c
>> > between 2.3.91 and 2.3.93. Do you have any idea about it?
>> >
>> > I tested it on SUSE Linux 10.0 with latest fontconfig installed. I
>> > have four Simplified Chinese fonts installed:
>> >
>> > FZHeiTi,æ¹æ£é»ä½:style=Regular
>> > FZFangSong,æ¹æ£ä»¿å®:style=Regular
>> > FZKaiTi,æ¹æ£æ¥·ä½:style=Regular
>> > FZSongTi,æ¹æ£å®ä½:style=Regular
>> >
>> > Run fc-match without any parameter will return:
>> > FZFangSong.ttf: "FZFangSong" "Regular"
>> >
>> > However, it should return FZSongTi according to my config file.
>> >
>> > And I can only match these fonts with their latin name, like:
>> >
>> > $ fc-match FZSongTi
>> > FZSongTi.ttf: "FZSongTi" "Regular"
>> >
>> > Matching with localized name will give wrong result:
>> >
>> > $ fc-match æ¹æ£å®ä½
>> > FZFangSong.ttf: "FZFangSong" "Regular"
>>
>> I cannot reproduce this with the fontconfig-2.3.93.20051222 (CVS
>> checkout of fontconfig 2.4 branch from December 22th 2005) packages I
>> built for SuSE 10.0 (at ftp://ftp.suse.com/pub/projects/m17n/10.0):
>>
>> mfabian at magellan:~$ LANG=zh_CN.UTF-8 fc-match
>> FZSongTi.ttf: "FZSongTi" "Regular"
>> mfabian at magellan:~$ LC_ALL=zh_CN.UTF-8 fc-match
>> FZSongTi.ttf: "FZSongTi" "Regular"
>> mfabian at magellan:~$ LC_ALL=zh_CN.UTF-8 fc-match FZSongTi
>> FZSongTi.ttf: "FZSongTi" "Regular"
>> mfabian at magellan:~$ LC_ALL=zh_CN.UTF-8 fc-match æ¹æ£å®ä½
>> FZSongTi.ttf: "æ¹æ£å®ä½" "Regular"
>> mfabian at magellan:~$ rpm -q fontconfig
>> fontconfig-2.3.93.20051222-0.1
>> mfabian at magellan:~$
>>
>> --
>> Mike FABIAN <mfabian at suse.de> http://www.suse.de/~mfabian
>> ç¡ç ä¸è¶³ã¯ããä»äºã®Âé¿é¦Â£
>>
>>
--
Mike FABIAN <mfabian at suse.de> http://www.suse.de/~mfabian
ç¡ç ä¸è¶³ã¯ããä»äºã®æµã ã
More information about the Fontconfig
mailing list