Class GlyphOutlineData
Parsed outline data for one glyph, as extracted from the "glyf" table.
Inherited Members
Namespace: DRIT.Drawing.Font.Ttf.Glyphs
Assembly: DRIT.Drawing.dll
Syntax
public sealed class GlyphOutlineData
Constructors
GlyphOutlineData(bool, TtfSimpleGlyph?, TtfCompositeGlyph?, GlyphBoundingBox)
Initializes a new GlyphOutlineData with the specified values.
Declaration
public GlyphOutlineData(bool isComposite, TtfSimpleGlyph? simple, TtfCompositeGlyph? composite, GlyphBoundingBox bbox)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isComposite | True for composite glyphs. |
| TtfSimpleGlyph | simple | Non-null for simple (non-composite) glyphs. |
| TtfCompositeGlyph | composite | Non-null for composite glyphs. |
| GlyphBoundingBox | bbox | Design-space bounding box read from the glyph header. |
Fields
Empty
Outline for an empty glyph (e.g. space — no contours, no bbox).
Declaration
public static readonly GlyphOutlineData Empty
Field Value
| Type | Description |
|---|---|
| GlyphOutlineData |
Properties
BBox
Design-space bounding box read from the glyph header.
Declaration
public GlyphBoundingBox BBox { get; }
Property Value
| Type | Description |
|---|---|
| GlyphBoundingBox |
Composite
Non-null for composite glyphs.
Declaration
public TtfCompositeGlyph? Composite { get; }
Property Value
| Type | Description |
|---|---|
| TtfCompositeGlyph |
IsComposite
True for composite glyphs (numberOfContours == −1 in the glyf header).
Declaration
public bool IsComposite { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Simple
Non-null for simple (non-composite) glyphs, including zero-contour empty glyphs.
Declaration
public TtfSimpleGlyph? Simple { get; }
Property Value
| Type | Description |
|---|---|
| TtfSimpleGlyph |