[indic] Tighten up base-finding
Fixes https://github.com/harfbuzz/harfbuzz/issues/4185
This commit is contained in:
parent
c1acfe9966
commit
453ded0539
|
@ -1067,12 +1067,15 @@ final_reordering_syllable_indic (const hb_ot_shape_plan_t *plan,
|
||||||
base = i;
|
base = i;
|
||||||
while (base < end && is_halant (info[base]))
|
while (base < end && is_halant (info[base]))
|
||||||
base++;
|
base++;
|
||||||
info[base].indic_position() = POS_BASE_C;
|
if (base < end)
|
||||||
|
info[base].indic_position() = POS_BASE_C;
|
||||||
|
|
||||||
try_pref = false;
|
try_pref = false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (base == end)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
/* For Malayalam, skip over unformed below- (but NOT post-) forms. */
|
/* For Malayalam, skip over unformed below- (but NOT post-) forms. */
|
||||||
if (buffer->props.script == HB_SCRIPT_MALAYALAM)
|
if (buffer->props.script == HB_SCRIPT_MALAYALAM)
|
||||||
|
|
Loading…
Reference in New Issue