|
Description
|
If fc-match command bundled in fontconfig is invoked with monospace
on ja_JP.UTF-8 locale, "HG-GothicB-Sun" font was displayed as best
much font until nv_b48.
===
% ./fc-match monospace
hggbsun.ttf: "HG-GothicB-Sun" "Regular"
===
However, "Lucida Sans Typewriter" is displayed after b49.
===
% ./fc-match monospace
LucidaTypewriterR13.pcf: "Lucida Sans Typewriter" "Medium"
===
If --sort option is used, it works fine. So it looks that
FcFontSort works fine but FcFontMatch doesn't.
I encountered that Japanese characters in some area are rendered by non-Japanese
fonts with thunderbird or firefox on b49. I think that it is caused by this
issue because this problem doesn't occur if the following code in
src/fcmatch.c is commented out or workaround applied.
===
/*
if ( ls )
{
FcValue patLang;
for (i = 0;
FcPatternGet (p, FC_LANG, i, &patLang) == FcResultMatch;
i++)
;
if ( FcPatternGet ( p, FC_LANG, i-1, &patLang) == FcResultMatch
)
score[MATCH_LANG_INDEX] = FcHidePoorLangs ( &patLang, ls );
FcLangSetDestroy ( ls );
}
*/
|