Hi Sun Mi Shin, Can you provide input text and HarfBuzz versus expected output?
Also, 0.7.0 is fairly old, please use a newer snapshot from here: http://www.freedesktop.org/software/harfbuzz/release/ There are very small changes in the API. The only one I can remember off the top of my head is that hb_buffer_create() does not take any parameter anymore. Cheers, behdad On 07/14/2012 02:06 PM, 신선미 wrote: > Hi, I'm Sun Mi Shin. > > I'm HB newers and using HB for rendering Thai language. > > I ran simple application but it display incorrect output. > > I test thai rendering with HB shape output( info codepoint, glyph positions ). > > But the glyphs appears that they are just decomposed when I print them out on > our canvas. > > > > My test program is below. Am I doing somethig wrong? > > Please correct following program problems. > > I'm using HB 0.7.0. > > Thank you. > > > buffer = hb_buffer_create(len); > hb_buffer_set_unicode_funcs(buffer, hb_unicode_funcs_get_default()); > hb_buffer_set_language(buffer, hb_language_from_string("th")); > hb_buffer_set_script(buffer, HB_SCRIPT_THAI); > > hb_buffer_set_direction(buffer, HB_DIRECTION_LTR); > > hb_buffer_add_utf32(buffer, (const uint32_t *) text, len, 0, len); > > > > hb_font_t *hb_ft_font; > > hb_font_t *hb_sub_font; > > hb_ft_font = hb_ft_font_create(face, NULL); > hb_sub_font = hb_font_create_sub_font(hb_ft_font); > hb_font_destroy(hb_ft_font); > > > > hb_shape(hb_sub_font, buffer, NULL, 0); > > > > unsigned int slen = hb_buffer_get_length(buffer); > positions = hb_buffer_get_glyph_positions(buffer, NULL); > infos = hb_buffer_get_glyph_infos(buffer, NULL); > > > > _______________________________________________ > HarfBuzz mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/harfbuzz _______________________________________________ HarfBuzz mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/harfbuzz
