From ff5223ba6075ea4d9c9844e3733ad7a0dc5875bd Mon Sep 17 00:00:00 2001 From: Michiharu Ariza Date: Sun, 23 Feb 2020 15:53:21 -0800 Subject: [PATCH] remove invalid glyphs from closure (#2188) fix issue #2186 --- src/hb-ot-layout-gsubgpos.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index 421a83da2..607307633 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh @@ -114,6 +114,7 @@ struct hb_closure_context_t : void flush () { + hb_set_del_range (output, face->get_num_glyphs (), hb_set_get_max (output)); /* Remove invalid glyphs. */ hb_set_union (glyphs, output); hb_set_clear (output); }