[subset/cff1] Reuse num_glyphs

pull/4264/head
Behdad Esfahbod 1 year ago
parent 937ead2f02
commit fa8d15d520
  1. 3
      src/hb-subset-cff1.cc

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

Loading…
Cancel
Save