<div style="font-size:10pt; font-family:Gulim;">
<P>Hi, I'm Sun Mi Shin.</P>
<P>I'm HB newers and using HB for rendering Thai language.</P>
<P>I ran simple application but it display incorrect output. </P>
<P>I test thai rendering with HB shape output( info codepoint, glyph positions ). </P>
<P>But the glyphs appears that they are just decomposed when I print them out on our canvas.</P>
<P> </P>
<P>My test program is below. Am I doing somethig wrong?</P>
<P>Please correct following program problems.</P>
<P>I'm using HB 0.7.0.</P>
<P>Thank you.</P>
<P><BR> buffer = hb_buffer_create(len);<BR> hb_buffer_set_unicode_funcs(buffer, hb_unicode_funcs_get_default());<BR> hb_buffer_set_language(buffer, hb_language_from_string("th"));<BR> hb_buffer_set_script(buffer, HB_SCRIPT_THAI);</P>
<P> hb_buffer_set_direction(buffer, HB_DIRECTION_LTR);<BR><BR> hb_buffer_add_utf32(buffer, (const uint32_t *) text, len, 0, len);</P>
<P> </P>
<P> hb_font_t *hb_ft_font;</P>
<P> hb_font_t *hb_sub_font;</P>
<P> hb_ft_font = hb_ft_font_create(face, NULL);<BR> hb_sub_font = hb_font_create_sub_font(hb_ft_font);<BR> hb_font_destroy(hb_ft_font);</P>
<P> </P>
<P> hb_shape(hb_sub_font, buffer, NULL, 0);</P>
<P> </P>
<P> unsigned int slen = hb_buffer_get_length(buffer);<BR> positions = hb_buffer_get_glyph_positions(buffer, NULL);<BR> infos = hb_buffer_get_glyph_infos(buffer, NULL);</P></div><table style="display:none"><tr><td><img src="http://mail.naver.com/readReceipt/notify/?img=HmnsFqE9%2BNEdKxk0KqMYazMqpopSKxb%2FFqI0K6MrF6E9MrMwKr30KEId%2BrkSKxgq7xU5W4d5W4C5bX0q%2BzkR74FTWx%2Fs1zJZp4i9DNGgWz0q%2BHK5pNi0p630brRdWXg5WXiN.gif" border="0"></td></tr></table>