Class: LutTextMeasurer
Defined in: common/textmeasure.ts:253
LUT-based TextMeasurer. Width from LUT quantised to FreeType's 96 dpi pixel grid; height matches FreeType Times-Roman.
See
lib/common/textspan.c:estimate_textspan_size
Implements
Constructors
Constructor
ts
new LutTextMeasurer(): LutTextMeasurer;Returns
LutTextMeasurer
Methods
measure()
ts
measure(
text: string,
fontname: string,
fontsize: number,
flags?: TextVariantFlags): TextSize;Defined in: common/textmeasure.ts:254
Parameters
text
string
fontname
string
fontsize
number