remove invalid glyphs from closure (#2188)

fix issue #2186
This commit is contained in:
Michiharu Ariza 2020-02-23 15:53:21 -08:00 committed by GitHub
parent e17fd0d91c
commit ff5223ba60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}