PeachDrawing.Text

PeachDrawing.Text.Outlines

OutlineSegment Struct

One piece of a contour: a straight line, or a cubic Bezier curve.

public readonly struct OutlineSegment

Remarks

TrueType outlines are made of quadratic curves. They are raised to cubic ones on the way out, so a consumer only has two kinds of segment to draw.

Properties  
Control1 The first control point of a cubic curve; zero for a line.
Control2 The second control point of a cubic curve; zero for a line.
End The point the segment ends at, which is where the next segment starts.
IsCubic Whether the segment is a cubic Bezier curve and not a straight line.
Methods  
Cubic(OutlinePoint, OutlinePoint, OutlinePoint) Creates a cubic Bezier curve.
Line(OutlinePoint) Creates a straight line to a point.