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 ++++++ .../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 2d8e13e5a..17cca3318 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 46a80730e..317a79cf6 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 @@ ម៉្លេះ ម‌៉្លេះ ប៊័ +នែ៎