[subset/glyf] Exact allocation

retaingid-glyf-speedup
Behdad Esfahbod 1 year ago
parent ff0b85cf57
commit a830f085c8
  1. 2
      src/OT/glyf/glyf.hh

@ -432,7 +432,7 @@ glyf::_populate_subset_glyphs (const hb_subset_plan_t *plan,
{
OT::glyf_accelerator_t glyf (plan->source);
unsigned num_glyphs = plan->num_output_glyphs ();
if (!glyphs.resize (num_glyphs)) return false;
if (!glyphs.resize (num_glyphs, true, true)) return false;
for (auto p : plan->glyph_map->iter ())
{

Loading…
Cancel
Save