Re: GTK+2.0 Chinese (or CJK) fonts on win32
Tor Lillqvist <[email protected]>
| Newsgroups | gmane.comp.video.gimp.windows.devel,gmane.comp.gnome.gtk+.internationalization |
|---|---|
| Message-ID | <[email protected]> |
Tor Lillqvist writes: > I'll also look into making pango_win32_font_get_coverage() actually > use the PangoLanguage passed to it. Will check what FreeType2 does, if > it does something similar. It seems that you can use this heuristics: > If the font name table has an entry in Traditional Chinese (0x404), it > is for zh_TW. If it has a name in Simplified Chinese (0x804), it is > for zh_CN. Yup, works fine! I now have pango.aliases contain: courier = "courier new" sans = "arial,mingliu,simhei,gulimche,ms gothic" serif = "times new roman,mingliu,simsun,gulimche,ms gothic" monospace = "courier new,mingliu,simhei,gulimche,ms gothic" and when starting testgtk with LANG=zh_TW, the colorselector uses mingliu: