GTK+2.0 Chinese (or CJK) fonts on win32
Tor Lillqvist <[email protected]>
| Newsgroups | gmane.comp.video.gimp.windows.devel |
|---|---|
| Message-ID | <[email protected]> |
astro_chuck writes: > I'm trying to show chinese fonts using gtk+2.0 on win2k. However they > are all shown in blanks. English fonts are ok, but whenever I have set > LC_ALL to zh_TW, all the chinese are in blanks. > In gtk+1.2, we have gtkrc.zh_TW. But How can we change and alias fonts > in gtk+2.0? All text display in GTK+ 2.0 is handled by the Pango library. But sorry, so probably you need to tell something to Pango. But I don't know the solution to your problems right away. I don't remember whether I have ever checked if Chinese works in GTK+ 2.0. They indeed don't seem to work now. Arabic and Russian characters, for instance, do work. (But Arabic isn't displayed correctly as there is no Pango shaper for Arabic for the Win32 Pango backend.) I'll try to have a look into your problem. One possible way to solve many problems with Pango on Win32 would be to use the Pango FreeType2 backend on Windows instead of the Win32 backend. The main reason being that there are lots of more people working on the FreeType2 stuff (for other platforms). There are very few people who have contributed to the Pango Win32 backend. Another possible way to improve Pango on Win32 would be to use Uniscribe. I think the whole idea with Pango was partly inspired by Uniscribe, so possibly it would fit in well. But it will take lots of time for somebody who doesn't have any experience at all with Uniscribe... (Uniscribe is an API included in newer Windows versions, and presumably available for older versions, too. I might guess you get it for instance if you install for instance the newest IE, or support for Hebrew, Arabic or Indic languages for it, or something.) --tml