Wei, Xiaohai
2011-Jun-21 01:47 UTC
[Fontconfig] why sometimes the first one of fc-match -s is not the one returned by fc-match?
I met a problem that when I run fc-match -s, it returns a list of fonts. but it is strange that the first one in the sorted list is not the one fc-match returned. is it a problem or not? thanks [root at linux Release]# LANG=ja fc-match "Droid Sans" DroidSansJapanese.ttf: "Droid Sans" "Regular" [root at linux Release]# LANG=ja fc-match -s "Droid Sans" DroidSansJapanese.ttf: "Droid Sans" "Regular" DroidSans.ttf: "Droid Sans" "Regular" DroidSansHebrew.ttf: "Droid Sans" "Regular" DroidSansArabic.ttf: "Droid Sans" "Regular" DroidSansThai.ttf: "Droid Sans" "Regular" DroidSansFallback.ttf: "Droid Sans" "Regular" n019003l.pfb: "Nimbus Sans L" "Regular" uming.ttc: "AR PL UMing HK" "Light" uming.ttc: "AR PL UMing CN" "Light" msyh.ttf: "Microsoft YaHei" "Normal" LiberationMono-Regular.ttf: "Liberation Mono" "Regular" LiberationSans-Regular.ttf: "Liberation Sans" "Regular" LiberationSerif-Regular.ttf: "Liberation Serif" "Regular" ukai.ttc: "AR PL UKai CN" "Book" ukai.ttc: "AR PL UKai TW MBE" "Book" d050000l.pfb: "Dingbats" "Regular" s050000l.pfb: "Standard Symbols L" "Regular" it is correct for LANG=ja. but for LANG=ja_JP [root at linux Release]# LANG=ja_JP fc-match "Droid Sans" DroidSansJapanese.ttf: "Droid Sans" "Regular" but for sorted fc-match, the returned list is strange. [root at linux Release]# LANG=ja_JP fc-match -s "Droid Sans" DroidSans.ttf: "Droid Sans" "Regular" DroidSansHebrew.ttf: "Droid Sans" "Regular" DroidSansArabic.ttf: "Droid Sans" "Regular" DroidSansThai.ttf: "Droid Sans" "Regular" DroidSansJapanese.ttf: "Droid Sans" "Regular" DroidSansFallback.ttf: "Droid Sans" "Regular" n019003l.pfb: "Nimbus Sans L" "Regular" uming.ttc: "AR PL UMing HK" "Light" uming.ttc: "AR PL UMing CN" "Light" msyh.ttf: "Microsoft YaHei" "Normal" LiberationMono-Regular.ttf: "Liberation Mono" "Regular" LiberationSans-Regular.ttf: "Liberation Sans" "Regular" LiberationSerif-Regular.ttf: "Liberation Serif" "Regular" ukai.ttc: "AR PL UKai CN" "Book" ukai.ttc: "AR PL UKai TW MBE" "Book" d050000l.pfb: "Dingbats" "Regular" s050000l.pfb: "Standard Symbols L" "Regular" thanks James -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20110621/63b9334e/attachment.html>
Behdad Esfahbod
2011-Jun-21 17:14 UTC
[Fontconfig] why sometimes the first one of fc-match -s is not the one returned by fc-match?
On 06/20/11 21:47, Wei, Xiaohai wrote:> I met a problem that when I run fc-match -s, it returns a list of fonts. > but it is strange that the first one in the sorted list is not the one > fc-match returned. > > is it a problem or not?This is not expected. Not sure what''s going on. behdad> thanks
Behdad Esfahbod
2011-Jun-22 17:08 UTC
[Fontconfig] why sometimes the first one of fc-match -s is not the one returned by fc-match?
On 06/20/11 21:47, Wei, Xiaohai wrote:> I met a problem that when I run fc-match -s, it returns a list of fonts. > but it is strange that the first one in the sorted list is not the one > fc-match returned. > > is it a problem or not?Fixed in master. Embarrassing mistake I made on Wed Dec 31 19:35:27 2008 :(. behdad> thanks > > > [root at linux Release]# LANG=ja fc-match "Droid Sans" > DroidSansJapanese.ttf: "Droid Sans" "Regular" > > [root at linux Release]# LANG=ja fc-match -s "Droid Sans" > DroidSansJapanese.ttf: "Droid Sans" "Regular" > DroidSans.ttf: "Droid Sans" "Regular" > DroidSansHebrew.ttf: "Droid Sans" "Regular" > DroidSansArabic.ttf: "Droid Sans" "Regular" > DroidSansThai.ttf: "Droid Sans" "Regular" > DroidSansFallback.ttf: "Droid Sans" "Regular" > n019003l.pfb: "Nimbus Sans L" "Regular" > uming.ttc: "AR PL UMing HK" "Light" > uming.ttc: "AR PL UMing CN" "Light" > msyh.ttf: "Microsoft YaHei" "Normal" > LiberationMono-Regular.ttf: "Liberation Mono" "Regular" > LiberationSans-Regular.ttf: "Liberation Sans" "Regular" > LiberationSerif-Regular.ttf: "Liberation Serif" "Regular" > ukai.ttc: "AR PL UKai CN" "Book" > ukai.ttc: "AR PL UKai TW MBE" "Book" > d050000l.pfb: "Dingbats" "Regular" > s050000l.pfb: "Standard Symbols L" "Regular" > > it is correct for LANG=ja. > but for LANG=ja_JP > > > [root at linux Release]# LANG=ja_JP fc-match "Droid Sans" > DroidSansJapanese.ttf: "Droid Sans" "Regular" > > but for sorted fc-match, the returned list is strange. > > [root at linux Release]# LANG=ja_JP fc-match -s "Droid Sans" > DroidSans.ttf: "Droid Sans" "Regular" > DroidSansHebrew.ttf: "Droid Sans" "Regular" > DroidSansArabic.ttf: "Droid Sans" "Regular" > DroidSansThai.ttf: "Droid Sans" "Regular" > DroidSansJapanese.ttf: "Droid Sans" "Regular" > DroidSansFallback.ttf: "Droid Sans" "Regular" > n019003l.pfb: "Nimbus Sans L" "Regular" > uming.ttc: "AR PL UMing HK" "Light" > uming.ttc: "AR PL UMing CN" "Light" > msyh.ttf: "Microsoft YaHei" "Normal" > LiberationMono-Regular.ttf: "Liberation Mono" "Regular" > LiberationSans-Regular.ttf: "Liberation Sans" "Regular" > LiberationSerif-Regular.ttf: "Liberation Serif" "Regular" > ukai.ttc: "AR PL UKai CN" "Book" > ukai.ttc: "AR PL UKai TW MBE" "Book" > d050000l.pfb: "Dingbats" "Regular" > s050000l.pfb: "Standard Symbols L" "Regular" > > thanks > > James > > > > _______________________________________________ > Fontconfig mailing list > Fontconfig at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/fontconfig