Re: Thai script in Pango



Hi Owen, Pablo,

] 
] Hmm, I'm a bit puzzled. One thing to check is to see if the
] encoding of your fonts matches the encoding that the module
] expects - though that isn't anything very fancy. (Just a 256
] character fonts with the high characters having the Thai characters
] as in the TIS standard.)
Attached is the postscript image to show that Thai font layout in Solaris
is conformed to TIS standard so that we can neglet this suspect.

] 
] Actually, most likely the problem is that it isn't looking
] for the font to begin with.
Here is the Thai X font names on Solaris.

-bigelow-lucida-medium-r-normal--0-0-0-0-m-0-tis620.2533-0
-bigelow-lucidab-bold-r-normal--0-0-0-0-m-0-tis620.2533-0
-bigelow-lucidai-medium-i-normal--0-0-0-0-m-0-tis620.2533-0
-bigelow-lucidaz-bold-i-normal--0-0-0-0-m-0-tis620.2533-0


] 
] You probably want to to copy the installed
] $(sysconfdir)/pango/pangox.aliases to the various aliases in
] ~/.pangox.aliases and then add your font.
I also attached ".pangox.aliases" which is put on my home directory
and I also added Thai font name as shown below in it.

-bigelow-lucida-medium-r-normal--*-*-*-*-*-*-tis620.2533-0

] 
] (A possible alternative would be to make "lucidaz" instead of "sans"
] the default GTK+ font by creating a ~/.gtkrc.-2.0 that looks something
] like:
] 
] style "user-font"
] {
]   font_name="lucidaz 12"
] }
] widget_class "*" style "user-font"
Also, attached is .gtkrc.-2.0 I put in my home directory.


] 
] However, I think the testtext demo does reference "sans" explicitely
] at least for some of the characters.)
I did ran "testtext again but still cann't see Thai alphabets at all, just only
blank.

I also compiled gtk+1.3.1 label test program at
gtk+-1.3.1/examples/label/label.c which I added Thai UTF-8 alphabet in there
but still cann't see any Thai.

As Pablo Saratxaga suggested, I also tried adding tis620.2533-0 in Thai Pango
Engine at pango-0.12/modules/thai/thai.c and recompiled/installed it on the
system but still can't see any Thai.

get_font_info (PangoFont *font)
{
  static const char *charsets[] = {
    "xtis620.2529-1",
    "xtis-0",
    "tis620.2533-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_TIS,
    THAI_FONT_ISO10646
  };



Please let me know any other things I need to do.
Do I need any iconv modules for tis620.2533-0 for Pango ?
I'd like to try to debug Pango so that I can help tracking down what I need
to do. Please let me know how to start it as well.

Thanks in advance,

Chookij V.

# File defining aliases of PangoFontDescription to X font set
#
# family style variant weight stretch   XLFD
  
sans normal normal normal normal "-*-helvetica-medium-r-normal--*-*-*-*-*-*-*-*,\
				  -*-clearlyu-medium-r-normal--*-*-*-*-*-*-iso10646-1,\
	                          -*-fixed-medium-r-normal--*-*-*-*-*-*-*-*,\
                                  -kaist-iyagi-bold-r-normal--*-*-*-*-*-*-johab-1,\
                                  -*-song ti-medium-r-normal--*-*-*-*-*-*-*-*,\
                                  -tamil-tscakaram-medium-r-normal--*-*-*-*-*-*-tscii-0,\
				  -bigelow-lucida-medium-r-normal--*-*-*-*-*-*-tis620.2533-0,\
                                  -*-devanagari-medium-r-normal--*-*-*-*-*-*-iso10646-dev"

serif normal normal normal normal "-*-times-medium-r-normal--*-*-*-*-*-*-*-*,\
				  -*-clearlyu-medium-r-normal--*-*-*-*-*-*-iso10646-1,\
	                           -*-fixed-medium-r-normal--*-*-*-*-*-*-*-*,\
                                   -kaist-iyagi-bold-r-normal--*-*-*-*-*-*-johab-1,\
                                   -*-song ti-medium-r-normal--*-*-*-*-*-*-*-*,\
                                   -tamil-tscakaram-medium-r-normal--*-*-*-*-*-*-tscii-0,\
				  -bigelow-lucida-medium-r-normal--*-*-*-*-*-*-tis620.2533-0,\
                                   -*-devanagari-medium-r-normal--*-*-*-*-*-*-iso10646-dev"

monospace normal normal normal normal "-*-fixed-medium-r-normal--*-*-*-*-*-*-*-*,\
				       -*-clearlyu-medium-r-normal--*-*-*-*-*-*-iso10646-1,\
                                       -kaist-iyagi-bold-r-normal--*-*-*-*-*-*-johab-1,\
                                       -*-song ti-medium-r-normal--*-*-*-*-*-*-*-*,\
                                       -tamil-tscakaram-medium-r-normal--*-*-*-*-*-*-tscii-0,\
				  -bigelow-lucida-medium-r-normal--*-*-*-*-*-*-tis620.2533-0,\
                                       -*-devanagari-medium-r-normal--*-*-*-*-*-*-iso10646-dev"
style "user-font"
{
  font_name="lucida 18"
}
widget_class "*" style "user-font"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]