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@linux Release]# LANG=ja fc-match "Droid Sans" > DroidSansJapanese.ttf: "Droid Sans" "Regular" > > [root@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@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@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@xxxxxxxxxxxxxxxxxxxxx > http://lists.freedesktop.org/mailman/listinfo/fontconfig _______________________________________________ Fontconfig mailing list Fontconfig@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/fontconfig