vyaz-monorepo / core/src / MeasureProfile
Interface: MeasureProfile
Defined in: core/src/measure/FontkitMeasureContext.ts:60
How widths are computed from the font tables.
'advance'(default) — Σ per-code-pointadvanceWidth. Fast, and shaping-invariant, but ignores kerning and ligatures, so it drifts from what a browser paints (up to a few px per word on a kerned Latin font).'shape'— fontkitlayout()advance: GPOS kerning + GSUB (liga,clig,calt,ccmp), i.e. browser-default behaviour. Use for the SVGbrowserpreset when on-screen width has to match the layout.
Properties
engine
engine:
"advance"|"shape"
Defined in: core/src/measure/FontkitMeasureContext.ts:61
features?
optionalfeatures?:Record<string,boolean>
Defined in: core/src/measure/FontkitMeasureContext.ts:63
'shape' only — OpenType feature overrides, e.g. { liga: false }.
