From 1feb8345a5fd92297eb6796e6dce633bafa0c76e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 16 Jul 2012 13:23:40 -0400 Subject: [PATCH] [GSUB] Allow 1-to-1 ligature substitutions! Apparently Uniscribe allows these, and they are used in some Khmer fonts shipped with Windows, namely, Daun Penh. --- src/hb-ot-layout-gsub-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-layout-gsub-table.hh b/src/hb-ot-layout-gsub-table.hh index f5f38cc41..8a0bc3cec 100644 --- a/src/hb-ot-layout-gsub-table.hh +++ b/src/hb-ot-layout-gsub-table.hh @@ -480,7 +480,7 @@ struct Ligature { TRACE_APPLY (); unsigned int count = component.len; - if (unlikely (count < 2)) return TRACE_RETURN (false); + if (unlikely (count < 1)) return TRACE_RETURN (false); hb_apply_context_t::mark_skipping_forward_iterator_t skippy_iter (c, c->buffer->idx, count - 1); if (skippy_iter.has_no_chance ()) return TRACE_RETURN (false);