From 330b329c8905a37ca88c556dea82c70d74c77458 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 24 Jul 2012 02:25:26 -0400 Subject: [PATCH] [Indic] Unmark U+17D1 KHMER SIGN VIRIAM to NOT be a Virama Fixes another 1 Khmer failure. Down to 30 (0.0100293%) now. --- src/hb-ot-shape-complex-indic.cc | 2 ++ .../in-tree/shaper-indic/south-east-asian/script-khmer/misc/misc.txt | 1 + 2 files changed, 3 insertions(+) diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index a061d7b..58b38c7 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -256,6 +256,8 @@ set_indic_properties (hb_glyph_info_t &info, hb_ot_map_t *map, hb_font_t *font) if (unlikely (hb_in_range (u, 0x0951, 0x0954))) cat = OT_VD; + if (unlikely (u == 0x17D1)) + cat = OT_X; if (cat == OT_X && unlikely (hb_in_range (u, 0x17CB, 0x17D3))) /* Khmer Various signs */ { 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 aa76bc5..945dd1d 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 @@ -20,3 +20,4 @@ កៀ្រ កោ្រ កៅ្រ +ព៑ា -- 2.7.4