GlyphOutline Class

Definition

The outline of one glyph in glyph space, as the path type content stream paths use: a reusable buffer of PathVerbs and PathPoints that a FontProgram fills and Path views.

public sealed class GlyphOutline

Remarks

ISO 32000-2 §9.2.4 (glyph space) and §8.5.2. Coordinates are in the program's glyph space units (font units for TrueType, mapped to text space by FontMatrix). TrueType outlines use QuadTo; CFF and Type 1 outlines use CubicTo. Every contour starts with MoveTo and ends with Close. Glyph outlines are filled with the nonzero winding number rule.

One instance is meant to be reused for many glyphs: GetOutline(Int32, GlyphOutline) clears it first, and the buffers grow to the largest glyph and stay, so extracting outlines allocates nothing once warm. Not thread-safe: use one per thread.

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Properties (2)

Methods (6)