• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class GlyphOutlineData

Parsed outline data for one glyph, as extracted from the "glyf" table.

Inheritance
object
GlyphOutlineData
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX