From 0d8f8a177c4bfd4dc642a353bab8d03674e839ac Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 31 Jul 2011 14:57:59 -0400 Subject: [PATCH] [Indic] Fix reph inhibition logic --- src/hb-ot-shape-complex-indic.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index ba28aa5c8..d801cec7b 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -513,10 +513,10 @@ found_consonant_syllable (const hb_ot_map_t *map, hb_buffer_t *buffer, hb_mask_t /* Handle beginning Ra */ - if (start + 2 <= end && + if (start + 3 <= end && info[start].indic_category() == OT_Ra && info[start + 1].indic_category() == OT_H && - (start + 2 == end || !is_joiner (info[start]))) + !is_joiner (info[start + 2])) { info[start].indic_position() = POS_POST; info[start].mask = mask_array[RPHF];