private void TransformPoints(Glyph fromGlyph, VectorTransform transform) { if (HoleSorted && !fromGlyph.WasHoleSorted) { // We must sort all components: fromGlyph.HoleSort(); } VectorPoint current = fromGlyph.FirstPathNode; while (current != null) { // Create a new one: VectorPoint newPoint = current.Copy(); // Apply transformed pos: newPoint.Transform(transform); // Add it: AddPathNode(newPoint); current = current.Next; if (current == null) { // Last one - ensure it's closed: newPoint.IsClose = true; } } }
private void TransformPoints(Glyph fromGlyph, VectorTransform transform) { VectorPoint current = fromGlyph.FirstPathNode; while (current != null) { // Create a new one: VectorPoint newPoint = current.Copy(); // Apply transformed pos: newPoint.Transform(transform); // Add it: AddPathNode(newPoint); current = current.Next; } }