Class TtfSimpleGlyph
Represents a TrueType simple-glyph outline: contour data parsed from a non-composite, non-empty entry in the "glyf" table.
Inherited Members
Namespace: DRIT.Drawing.Font.Ttf.Glyphs
Assembly: DRIT.Drawing.dll
Syntax
public sealed class TtfSimpleGlyph
Constructors
TtfSimpleGlyph(int, TtfPoint[], ushort[], byte[])
Initializes a new TtfSimpleGlyph with the specified contour data.
Declaration
public TtfSimpleGlyph(int numberOfContours, TtfPoint[] points, ushort[] endPtsOfContours, byte[] instructions)
Parameters
| Type | Name | Description |
|---|---|---|
| int | numberOfContours | Number of closed contours. |
| TtfPoint[] | points | All points of all contours, in order. |
| ushort[] | endPtsOfContours | Index into Points of the last point of each contour. |
| byte[] | instructions | TrueType hinting instructions. |
Fields
Empty
A zero-contour simple glyph (e.g. space character).
Declaration
public static readonly TtfSimpleGlyph Empty
Field Value
| Type | Description |
|---|---|
| TtfSimpleGlyph |
Properties
EndPtsOfContours
Index (into Points) of the last point of each contour. Length == NumberOfContours.
Declaration
public ushort[] EndPtsOfContours { get; }
Property Value
| Type | Description |
|---|---|
| ushort[] |
Instructions
TrueType hinting instructions (may be empty).
Declaration
public byte[] Instructions { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |
NumberOfContours
Number of closed contours.
Declaration
public int NumberOfContours { get; }
Property Value
| Type | Description |
|---|---|
| int |
Points
All points of all contours, in order. Use EndPtsOfContours to determine contour boundaries.
Declaration
public TtfPoint[] Points { get; }
Property Value
| Type | Description |
|---|---|
| TtfPoint[] |