[glyf/Composite] Remove phantom points when not needed anymore

This commit is contained in:
Behdad Esfahbod 2022-10-13 17:13:40 -06:00
parent 5769d422c5
commit 527e63a3bd
1 changed files with 3 additions and 1 deletions

View File

@ -293,6 +293,8 @@ 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);
@ -313,7 +315,7 @@ struct Glyph
}
}
all_points.extend (comp_points.sub_array (0, comp_points.length - PHANTOM_COUNT));
all_points.extend (comp_points);
comp_index++;
}