From d5cfbaa0684d4bf33e21bf1609f730436312bc10 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 27 Jun 2022 12:24:20 -0600 Subject: [PATCH] [glyf] Optimize composite points loading --- src/OT/glyf/Glyph.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OT/glyf/Glyph.hh b/src/OT/glyf/Glyph.hh index 94806b66b..0f7d022e4 100644 --- a/src/OT/glyf/Glyph.hh +++ b/src/OT/glyf/Glyph.hh @@ -139,10 +139,11 @@ struct Glyph break; case COMPOSITE: { + contour_point_vector_t comp_points; unsigned int comp_index = 0; for (auto &item : get_composite_iterator ()) { - contour_point_vector_t comp_points; + comp_points.reset (); if (unlikely (!glyf_accelerator.glyph_for_gid (item.glyphIndex) .get_points (font, glyf_accelerator, comp_points, phantom_only, depth + 1)))