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

This reverts commit 527e63a3bd.
This commit is contained in:
Behdad Esfahbod 2022-10-13 17:17:03 -06:00
parent 527e63a3bd
commit 82d19c08fc
1 changed files with 1 additions and 3 deletions

View File

@ -293,8 +293,6 @@ struct Glyph
for (unsigned int i = 0; i < PHANTOM_COUNT; i++) for (unsigned int i = 0; i < PHANTOM_COUNT; i++)
phantoms[i] = comp_points[comp_points.length - 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 */ /* Apply component transformation & translation */
item.transform_points (comp_points); 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++; comp_index++;
} }