Indeed that is a bug in fontconfig. current implementation assumes that the pattern has "family", "style", and/or "fullname" in the pattern and sort out the result according to the *lang then. so need to update the logic to sort them out first to accomplish that. On Sat, Jan 4, 2014 at 12:25 PM, BubuXP <bubuxp@xxxxxxxxx> wrote: > It's supposed to be fixed, but I still suffer this bug on fontconfig > 2.11.0 (debian packaged): > https://bugs.freedesktop.org/show_bug.cgi?id=27765 > > fc-match simply report the first style that it found in the 'style' > field, regardless of the language. > For example, Helvetica.ttf has: > > style: "標準體"(s) "Ordinær"(s) "Normal"(s) "Regular"(s) "Normaali"(s) > "Regolare"(s) "レギュラー"(s) "일반체"(s) "Regulier"(s) "Обычный"(s) "常规体"(s) > "عادي"(s) > stylelang: "zh-tw"(s) "da"(s) "de"(s) "en"(s) "fi"(s) "it"(s) "ja"(s) > "ko"(s) "nl"(s) "ru"(s) "zh-cn"(s) "ar"(s) > > My system use "it" as default locale, but "fc-match Helvetica" report: > Helvetica.ttf: "Helvetica" "標準體" > > that is the first style in the list (i.e. zh-tw). > > This behavior can be replicated with each font, like FreeMono in the > debian bug report: > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662931 > _______________________________________________ > Fontconfig mailing list > Fontconfig@xxxxxxxxxxxxxxxxxxxxx > http://lists.freedesktop.org/mailman/listinfo/fontconfig -- Akira TAGOH _______________________________________________ Fontconfig mailing list Fontconfig@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/fontconfig