TextMeasurer
Measures the advance width of a single line of text, in points.
Methods
Section titled “Methods”measure()
Section titled “measure()”measure(text, font): number;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
text |
string |
font |
FontSpec |
Returns
Section titled “Returns”number