From 8ba8042821e4581fe4e87419e58c823520441205 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 3 Aug 2012 18:54:54 -0700 Subject: [PATCH] [Indic] Fix consonant position font lookup logic Oops. I broken this badly and the test suite did not notice. That worries me. Have to investigate. --- src/hb-ot-shape-complex-indic.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index 7dde77d32..ccc4a9de2 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -340,9 +340,9 @@ consonant_position_from_face (const indic_shape_plan_t *indic_plan, hb_codepoint_t *glyphs, unsigned int glyphs_len, hb_face_t *face) { - if (indic_plan->pref.would_substitute (glyphs, ARRAY_LENGTH (glyphs), face)) return POS_BELOW_C; - if (indic_plan->blwf.would_substitute (glyphs, ARRAY_LENGTH (glyphs), face)) return POS_BELOW_C; - if (indic_plan->pstf.would_substitute (glyphs, ARRAY_LENGTH (glyphs), face)) return POS_POST_C; + if (indic_plan->pref.would_substitute (glyphs, glyphs_len, face)) return POS_BELOW_C; + if (indic_plan->blwf.would_substitute (glyphs, glyphs_len, face)) return POS_BELOW_C; + if (indic_plan->pstf.would_substitute (glyphs, glyphs_len, face)) return POS_POST_C; return POS_BASE_C; }