Only fallback-position glyphs if we have the ccc

Previously, ccc=0 Thai / Lao marks were being
mispositioned.  Don't touch them.
This commit is contained in:
Behdad Esfahbod 2012-08-27 16:54:34 -04:00
parent e1ba62811a
commit 30dd62251f
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ position_around_base (const hb_ot_shape_plan_t *plan,
unsigned int last_combining_class = 255; unsigned int last_combining_class = 255;
hb_glyph_extents_t cluster_extents; hb_glyph_extents_t cluster_extents;
for (unsigned int i = base + 1; i < end; i++) for (unsigned int i = base + 1; i < end; i++)
if (_hb_glyph_info_get_general_category (&buffer->info[i]) == HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK) if (_hb_glyph_info_get_modified_combining_class (&buffer->info[i]))
{ {
unsigned int this_combining_class = recategorize_combining_class (_hb_glyph_info_get_modified_combining_class (&buffer->info[i])); unsigned int this_combining_class = recategorize_combining_class (_hb_glyph_info_get_modified_combining_class (&buffer->info[i]));
if (this_combining_class != last_combining_class) if (this_combining_class != last_combining_class)