Class: EstimateTextMeasurer
Defined in: common/textmeasure.ts:304
Raw textspan_lut.c estimate: un-hinted per-char widths summed once, no kerning, height = fontsize * LINESPACING. Reproduces graphviz's HEADLESS measurement (no textlayout plugin → estimate_textspan_size) exactly, making it the deterministic, font-stack-independent reference for layout-rules validation. Unlike LutTextMeasurer this does NOT apply per-char FreeType px hinting.
See
lib/common/textspan.c:estimate_textspan_size
Implements
Constructors
Constructor
ts
new EstimateTextMeasurer(): EstimateTextMeasurer;Returns
EstimateTextMeasurer
Methods
measure()
ts
measure(
text: string,
fontname: string,
fontsize: number,
flags?: TextVariantFlags): TextSize;Defined in: common/textmeasure.ts:305
Parameters
text
string
fontname
string
fontsize
number