[kerx] Merge clusters in Ligature

This commit is contained in:
Behdad Esfahbod 2018-10-15 11:04:49 -07:00
parent bb35725cd7
commit 55d5ea666c
1 changed files with 6 additions and 1 deletions

View File

@ -391,6 +391,12 @@ struct LigatureSubtable
unsigned int action_idx = entry->data.ligActionIndex;
unsigned int action;
unsigned int ligature_idx = 0;
if (unlikely (!match_length))
return false;
buffer->merge_out_clusters (match_positions[0], buffer->out_len);
do
{
if (unlikely (!match_length))
@ -428,7 +434,6 @@ struct LigatureSubtable
buffer->skip_glyph ();
end--;
}
/* TODO merge_clusters / unsafe_to_break */
action_idx++;
}