Table of Contents

Class GlyphOutline

Namespace
DocWright.Fonts
Assembly
DocWright.Fonts.dll

A decoded glyph outline in font units: closed contours of line, quadratic and cubic segments. Produced by GlyphOutlineReader from either TrueType glyf data or CFF Type 2 charstrings; the two sources differ only in which segment kinds appear.

public sealed class GlyphOutline
Inheritance
GlyphOutline
Inherited Members

Properties

Contours

Gets the closed contours making up the glyph.

IsEmpty

Gets a value indicating whether the glyph has no contours (for example a space).

UnitsPerEm

Gets the design units per em of the face the outline came from, so a consumer can scale the font-unit coordinates without carrying the face alongside.

Methods

TryComputeControlBounds(out GlyphBoundingBox)

Computes the control-point bounding box: the box containing every on-curve and off-curve point. This is the box glyf's header records for straight-edged glyphs, and a superset of the true curve box wherever a control point lies outside it. Integer only — no scaling, no root finding.