diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2018-10-15 11:04:49 -0700 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2018-10-15 11:05:10 -0700 |
commit | 55d5ea666c25f75e9b1bc2eb43cfb104a16ebe04 (patch) | |
tree | b1bcf88c4a8cd9f48e61f9f3269e3cebd09cccde | |
parent | bb35725cd760f07fdb0586453512a106e534b739 (diff) |
[kerx] Merge clusters in Ligature
-rw-r--r-- | src/hb-aat-layout-morx-table.hh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/hb-aat-layout-morx-table.hh b/src/hb-aat-layout-morx-table.hh index 544dedde..8446a862 100644 --- a/src/hb-aat-layout-morx-table.hh +++ b/src/hb-aat-layout-morx-table.hh @@ -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++; } |