提交 55d5ea66 编写于 作者: B Behdad Esfahbod

[kerx] Merge clusters in Ligature

上级 bb35725c
...@@ -391,6 +391,12 @@ struct LigatureSubtable ...@@ -391,6 +391,12 @@ struct LigatureSubtable
unsigned int action_idx = entry->data.ligActionIndex; unsigned int action_idx = entry->data.ligActionIndex;
unsigned int action; unsigned int action;
unsigned int ligature_idx = 0; unsigned int ligature_idx = 0;
if (unlikely (!match_length))
return false;
buffer->merge_out_clusters (match_positions[0], buffer->out_len);
do do
{ {
if (unlikely (!match_length)) if (unlikely (!match_length))
...@@ -428,7 +434,6 @@ struct LigatureSubtable ...@@ -428,7 +434,6 @@ struct LigatureSubtable
buffer->skip_glyph (); buffer->skip_glyph ();
end--; end--;
} }
/* TODO merge_clusters / unsafe_to_break */
action_idx++; action_idx++;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册