From 30dd62251fcd04c2cbaa9b979d47ddbf62c6d460 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 27 Aug 2012 16:54:34 -0400 Subject: [PATCH] Only fallback-position glyphs if we have the ccc Previously, ccc=0 Thai / Lao marks were being mispositioned. Don't touch them. --- src/hb-ot-shape-fallback.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-shape-fallback.cc b/src/hb-ot-shape-fallback.cc index f1ea61a2d..b0dcc757a 100644 --- a/src/hb-ot-shape-fallback.cc +++ b/src/hb-ot-shape-fallback.cc @@ -257,7 +257,7 @@ position_around_base (const hb_ot_shape_plan_t *plan, unsigned int last_combining_class = 255; hb_glyph_extents_t cluster_extents; 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])); if (this_combining_class != last_combining_class)