Re: Thai script in Pango
- From: Chookij Vanatham <chookij vanatham eng sun com>
- To: gtk-i18n-list gnome com, chookij vanatham eng sun com
- Cc: gtk-i18n-list redhat com
- Subject: Re: Thai script in Pango
- Date: Thu, 05 Oct 2000 12:13:36 -0700 (PDT)
Hi,
Forget to say what I changed.
Change from tis620.2533-1 to tis620.2533-0
Change from tis620.2529-1 to tis620.2533-0
Not quite sure if I do need to do thing with ICONV as well...
Chookij V.
] Date: Thu, 05 Oct 2000 12:07:54 -0700 (PDT)
] From: Chookij Vanatham <chookij vanatham eng sun com>
] Subject: Thai script in Pango
] To: gtk-i18n-list gnome com
] Cc: gtk-i18n-list redhat com, Chookij Vanatham Eng Sun COM
] MIME-version: 1.0
]
]
] Hello,
]
] I downloaded Pango last month and tried it on Solaris 8.
] Under en_US.UTF-8 locale, I added some Thai characters (UTF-8) to
] the testtext.c and recompiled it and ran it again and found out
] that gtk+-1.3.1/gtk/testtext cann't display Thai characters.
]
] I'm trying to fix the problem and here is what I found.
]
] In Thai Pango engine at pango-0.12/modules/thai/thai.c, there is
] the variable name "charset" which is problably used with the fontname.
] This "charset" for Thai isn't the same as we use in Solaris as shown below.
]
] Thai Pango Engine: pango-0.12/modules/thai/thai.c
] -------------------------------------------------
] static ThaiFontInfo *
] get_font_info (PangoFont *font)
] {
] static const char *charsets[] = {
] "xtis620.2529-1",
] "xtis-0",
] "tis620.2533-1",
] "tis620.2529-1",
] "iso8859-11",
] "iso10646-1",
] };
]
] static const int charset_types[] = {
] THAI_FONT_XTIS,
] THAI_FONT_XTIS,
] THAI_FONT_TIS,
] THAI_FONT_TIS,
] THAI_FONT_TIS,
] THAI_FONT_ISO10646
] };
]
] ....
]
] }
]
] In Solaris, Thai font name is something as shown below.
] -bigelow-lucidaz-bold-i-normal--0-0-0-0-m-0-tis620.2533-0
]
] So, I did changed it and recompiled and installed it but
] Thai script isn't still able to be displayed yet.
]
] If anyone knows or suggests me how to fix this, it would be
] really helpfull. I'm just started playing with Pango... :)
]
]
] Thanks,
]
] Chookij V.
]
]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]