Type Alias GlyphRun
type GlyphRun = {
curveSet: CurveSetId;
defaultColor?: readonly [number, number, number, number];
glyphs: readonly PlacedGlyph[];
pixelsPerFontUnit: number;
}
curveSet: CurveSetId;
defaultColor?: readonly [number, number, number, number];
glyphs: readonly PlacedGlyph[];
pixelsPerFontUnit: number;
}
Properties
Readonlycurve Set
Which curve set this run's glyph ids index into.
Optional Readonlydefault Color
defaultColor?: readonly [number, number, number, number]
Optional default color for every glyph in this run, as linear RGBA in [0,1]. A glyph's
own PlacedGlyph.color takes precedence over this. When omitted, glyphs default to
opaque white. The rendered alpha is additionally scaled by the whole-block opacity.
Readonlyglyphs
Readonlypixels Per Font Unit
pixelsPerFontUnit: number
Font-units → pixels scale used by the layout.
Batch of placed glyphs that all use the same curve set and font-unit-to-pixel scale.