From 82d19c08fc5f2b083d3769d2e6bd818368d6ac40 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 13 Oct 2022 17:17:03 -0600 Subject: [PATCH] Revert "[glyf/Composite] Remove phantom points when not needed anymore" This reverts commit 527e63a3bd8487d21e423a8a358eee30672eddb6. --- src/OT/glyf/Glyph.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/OT/glyf/Glyph.hh b/src/OT/glyf/Glyph.hh index 5d9c11c82..503112270 100644 --- a/src/OT/glyf/Glyph.hh +++ b/src/OT/glyf/Glyph.hh @@ -293,8 +293,6 @@ struct Glyph for (unsigned int i = 0; i < PHANTOM_COUNT; i++) phantoms[i] = comp_points[comp_points.length - PHANTOM_COUNT + i]; - comp_points.resize (comp_points.length - PHANTOM_COUNT); - /* Apply component transformation & translation */ item.transform_points (comp_points); @@ -315,7 +313,7 @@ struct Glyph } } - all_points.extend (comp_points); + all_points.extend (comp_points.sub_array (0, comp_points.length - PHANTOM_COUNT)); comp_index++; }