[subset/cff1] Reuse num_glyphs

This commit is contained in:
Behdad Esfahbod committed 2023-06-03 21:58:21 -06:00
1 parent 937ead2f02
commit fa8d15d520
1 file changed
+2 -1
+2 -1
View File
@@ -486,7 +486,8 @@ struct cff_subset_plan {
}
unsigned int glyph;
for (glyph = 1; glyph < plan->num_output_glyphs (); glyph++)
unsigned num_glyphs = plan->num_output_glyphs ();
for (glyph = 1; glyph < num_glyphs; glyph++)
{
hb_codepoint_t old_glyph;
if (!plan->old_gid_for_new_gid (glyph, &old_glyph))