[subset/glyf] Exact allocation

This commit is contained in:
Behdad Esfahbod committed 2023-06-01 20:41:46 -06:00
1 parent ff0b85cf57
commit a830f085c8
1 file changed
+1 -1
+1 -1
View File
@@ -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 ())
{