[HarfBuzz] Problem with shaping Serif fonts
Peter Hunter
phunter at atex.com
Tue Oct 8 16:58:17 PDT 2013
That could possibly be because the font has a set of ligatures that include "ff" (Unicode value 0xfb00)
-----Original Message-----
From: harfbuzz-bounces+phunter=atex.com at lists.freedesktop.org [mailto:harfbuzz-bounces+phunter=atex.com at lists.freedesktop.org] On Behalf Of Oliver Meier
Sent: Wednesday, 9 October 2013 10:39 AM
To: harfbuzz at lists.freedesktop.org
Subject: [HarfBuzz] Problem with shaping Serif fonts
Hello
I recently started playing with harfbuzz and encountered a strange problem.
I don't know what I'm doing wrong, but somehow multiple f's shaped for serif fonts like DejaVuSerif or FreeSerif get grouped in pairs or so..
hb_buffer_set_direction( hb_buffer, HB_DIRECTION_LTR );
hb_buffer_set_script( hb_buffer, HB_SCRIPT_LATIN );
hb_buffer_set_language( hb_buffer, hb_language_from_string("en", strlen("en")) );
hb_buffer_add_utf8( hb_buffer, "ffff", strlen("ffff"), 0,
strlen("ffff") );
hb_shape( hb_ft_font, hb_buffer, NULL, 0 );
hb_glyph_info_t *glyph_info =
hb_buffer_get_glyph_infos(hb_buffer, &glyph_count);
At this point glyph_count=2 instead of 4. In the kerning i see that f's are indeed "grouped".
Can someone point me in the right direction, or is this a bug?
Thanks!
Oli
_______________________________________________
HarfBuzz mailing list
HarfBuzz at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/harfbuzz
More information about the HarfBuzz
mailing list