[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.
This commit is contained in:
parent
abd0c05f1f
commit
8ba8042821
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user