GlyphOutline

data class GlyphOutline(val contours: List<Contour>, val bbox: GlyphBbox)

Parsed glyph outline. TrueType outlines are sequences of contours, where each contour is points with on/off-curve flags. Off-curve points are quadratic Bézier control points; consecutive off-curve points imply an implied on-curve point at their midpoint.

toPdfPath is the canonical interpretation that turns these into a sequence of moveTo, lineTo, quadTo, close commands.

The outline is in font design units (multiply by fontSize / unitsPerEm to get PDF user-space units). Y is positive-up — typical TrueType convention.

Constructors

Link copied to clipboard
constructor(contours: List<Contour>, bbox: GlyphBbox)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard