[Fontconfig] language coverage

Qianqian Fang fangq at nmr.mgh.harvard.edu
Mon Nov 12 14:25:26 PST 2007

hi Keith

thank you for explaining.

here are the lang tags of this font:

mars:~> fc-list "WenQuanYi Zen Hei" lang

both Korean (ko) and traditional Chinese (zh_tw,zh_hk,zh_mo)
were recognized, but not Japanese.

Does this means that there is another font (for example: KochiGothic)
which declares a OS/2 bit for Japanese, but no Korean font
does that on my system?

I loaded the font ttf to fontforge, from Font Info\General dialog,
I found a "Interpretation" field:
the options of this field include "Japanese/S. & T. Chinese/Korean",
the current value for this font is "None". Is this identical
to the bit that you have referred to?

just trying to understand the behavior of the font.
thank you


Keith Packard wrote:
> On Mon, 2007-11-12 at 00:40 -0500, Qianqian Fang wrote:
>> do you see any downside to leave the language unspecified in
>> the OS/2 table in the font, or, alternatively, use fc-lang data
>> alone without looking up the OS/2 table in fontconfig to determine
>> coverage?
> Yes, of course. Chinese fonts are not suitable for displaying Japanese
> text (and vice-versa, of course). They'll get used if you have nothing
> else, but if you've got both kinds of fonts, you'll get the right ones.
> This also works for Korean and traditional vs simplified Chinese.

More information about the Fontconfig mailing list