Hi, The attachment is an updated patch to fix this issue and enhance the performance furthermore. And a potential bug of multiple FontSets handling should be fixed. Please review and commit. Regards James Su On 12/28/05, Mike FABIAN <mfabian@xxxxxxx> wrote: > Zhe Su <james.su@xxxxxxxxx> ????????: > > > Hi, > > Try match ???? :-) > > Yes, this doesn't work for me either: > > mfabian@magellan:~$ LC_ALL=zh_CN.UTF-8 fc-match ???? > FZSongTi.ttf: "FZSongTi" "Regular" > mfabian@magellan:~$ LC_ALL=zh_TW.UTF-8 fc-match ???? > FZMingTiB.ttf: "FZMingTiB" "Regular" > mfabian@magellan:~$ fc-list | grep ???? > FZKaiTi,????:style=Regular > mfabian@magellan:~$ > > > Regards > > James Su > > > > On 12/28/05, Mike FABIAN <mfabian@xxxxxxx> wrote: > >> Zhe Su <james.su@xxxxxxxxx> ?????????: > >> > >> > 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@magellan:~$ LANG=zh_CN.UTF-8 fc-match > >> FZSongTi.ttf: "FZSongTi" "Regular" > >> mfabian@magellan:~$ LC_ALL=zh_CN.UTF-8 fc-match > >> FZSongTi.ttf: "FZSongTi" "Regular" > >> mfabian@magellan:~$ LC_ALL=zh_CN.UTF-8 fc-match FZSongTi > >> FZSongTi.ttf: "FZSongTi" "Regular" > >> mfabian@magellan:~$ LC_ALL=zh_CN.UTF-8 fc-match ???? > >> FZSongTi.ttf: "????" "Regular" > >> mfabian@magellan:~$ rpm -q fontconfig > >> fontconfig-2.3.93.20051222-0.1 > >> mfabian@magellan:~$ > >> > >> -- > >> Mike FABIAN <mfabian@xxxxxxx> http://www.suse.de/~mfabian > >> ??????????"??? > >> > >> > > -- > Mike FABIAN <mfabian@xxxxxxx> http://www.suse.de/~mfabian > ????????????? > > -------------- next part -------------- A non-text attachment was scrubbed... Name: fcmatch-2.3.93.patch Type: text/x-patch Size: 9385 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20051228/547fb7b8/fcmatch-2.3.93.bin