From 7573799126e812a047daa5f64121ec959866b3c8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 24 Jul 2012 01:32:07 -0400 Subject: [PATCH] [Indic] Position Khmer U+17CE Fixes another 6 Khmer failures. Now at 136 (0.0454661%). --- src/hb-ot-shape-complex-indic.cc | 6 ++++++ .../shaper-indic/south-east-asian/script-khmer/misc/misc.txt | 1 + 2 files changed, 7 insertions(+) diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index 2d8e13e..17cca33 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -304,6 +304,12 @@ set_indic_properties (hb_glyph_info_t &info, hb_ot_map_t *map, hb_font_t *font) if (unlikely (u == 0x0B01)) pos = POS_BEFORE_SUB; /* Oriya Bindu is BeforeSub in the spec. */ + if (u == 0x17CE) /* U+17CE is not in Indic files. Likes to be treated like Top Matra */ + { + cat = OT_M; + pos = POS_AFTER_SUB; + } + info.indic_category() = cat; info.indic_position() = pos; diff --git a/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/misc.txt b/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/misc.txt index 46a8073..317a79c 100644 --- a/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/misc.txt +++ b/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/misc.txt @@ -15,3 +15,4 @@ ម៉្លេះ ម‌៉្លេះ ប៊័ +នែ៎ -- 2.7.4