From 0de771b72da6b342b015e3556190821547a4011d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 16 Jul 2012 13:39:36 -0400 Subject: [PATCH] [Indic] Categorize Khmer consonants --- src/hb-ot-shape-complex-indic.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index d838f1652..3ebd23a04 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -80,6 +80,10 @@ consonant_position (hb_codepoint_t u) { consonant_position_t *record; + /* Khmer does not have pre-base half forms. */ + if (0x1780 <= u && u <= 0x17FF) + return POS_BELOW_C; + record = (consonant_position_t *) bsearch (&u, consonant_positions, ARRAY_LENGTH (consonant_positions), sizeof (consonant_positions[0]),