From 55d5ea666c25f75e9b1bc2eb43cfb104a16ebe04 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 15 Oct 2018 11:04:49 -0700 Subject: [PATCH] [kerx] Merge clusters in Ligature --- src/hb-aat-layout-morx-table.hh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/hb-aat-layout-morx-table.hh b/src/hb-aat-layout-morx-table.hh index 544deddea..8446a862a 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++; }