From 8d00e8d0e7d10f823e6975fecaffb9d557b1a99a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 24 Jul 2012 01:04:18 -0400 Subject: [PATCH] [Indic] Don't reposition Khmer Bindu Khmer Bindu doesn't like to move to syllable end. Leave it where it was. Brings down Khmer failures from 510 to 142 (0.047572%). --- src/hb-ot-shape-complex-indic.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index ad1cadaae..2d8e13e5a 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -258,6 +258,8 @@ set_indic_properties (hb_glyph_info_t &info, hb_ot_map_t *map, hb_font_t *font) if (cat == OT_X && unlikely (hb_in_range (u, 0x17CB, 0x17D2))) /* Khmer Various signs */ cat = OT_N; + if (u == 0x17C6) /* Khmer Bindu doesn't like to be repositioned. */ + cat = OT_N; if (unlikely (u == 0x17D2)) cat = OT_Coeng; /* Khmer coeng */ else if (unlikely (u == 0x200C)) cat = OT_ZWNJ;