[glyf/Composite] Remove phantom points when not needed anymore
This commit is contained in:
parent
5769d422c5
commit
527e63a3bd
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue