Skip to content

$measureText

Measure some text.

Usage

$measureText[canvas;text;font?;property?]

Parameters

FieldDescriptionTypeRequired
canvasThe canvas name.stringtrue
textThe text to measure.stringtrue
fontThe text font.fontfalse
propertyProperty.”json” | TextMetricsfalse