提交 10cdc94e 编写于 作者: B Behdad Esfahbod

[Indic] In final reordering, find base, even if it disappeared

POS_BASE can disappear if base ligated backward.  Define base as last
with position not after base.

Fixes a few hundred of Sinhala failures with Iskoola Pota.
上级 9c4d24a3
......@@ -705,11 +705,8 @@ final_reordering_syllable (hb_buffer_t *buffer,
/* Find base again */
unsigned int base = end;
for (unsigned int i = start; i < end; i++)
if (info[i].indic_position() == POS_BASE_C) {
base = i;
break;
}
while (start < base && info[base - 1].indic_position() >= POS_BASE_C)
base--;
unsigned int start_of_last_cluster = base;
......
......@@ -4,3 +4,4 @@
කේ
කෝ
කෝ
ස්ට්‍රේ
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册