Struct GlyphOutline
Represents the outline of a glyph.
Inherited Members
Namespace: SixLabors.Fonts.Tables.TrueType.Glyphs
Assembly: SixLabors.Fonts.dll
Syntax
public readonly struct GlyphOutline
Constructors
| Improve this Doc View SourceGlyphOutline(Vector2[], UInt16[], Boolean[])
Initializes a new instance of the GlyphOutline struct.
Declaration
public GlyphOutline(Vector2[] controlPoints, ushort[] endPoints, bool[] onCurves)
Parameters
Type | Name | Description |
---|---|---|
Vector2[] | controlPoints | The vectorial points defining the shape of this glyph. |
UInt16[] | endPoints | The point indices for the last point of each contour, in increasing numeric order. |
Boolean[] | onCurves | Value indicating whether the corresponding ControlPoints item is on a curve |
Properties
| Improve this Doc View SourceControlPoints
Gets the vectorial points defining the shape of this glyph.
Declaration
public readonly ReadOnlyMemory<Vector2> ControlPoints { get; }
Property Value
Type | Description |
---|---|
ReadOnlyMemory<Vector2> |
EndPoints
Gets the point indices for the last point of each contour, in increasing numeric order.
Declaration
public readonly ReadOnlyMemory<ushort> EndPoints { get; }
Property Value
Type | Description |
---|---|
ReadOnlyMemory<UInt16> |
OnCurves
Gets at value indicating whether the corresponding ControlPoints item is on a curve.
Declaration
public readonly ReadOnlyMemory<bool> OnCurves { get; }
Property Value
Type | Description |
---|---|
ReadOnlyMemory<Boolean> |