Returns a CanvasTextMetrics object that contains the width of the specified text.
ICanvasTextMetrics retVal = object.measureText(text);
- text [in]
The text to measure.
- HTML Canvas 2D Context, Section 11
To get accurate measurements across different browsers, set the font and styles for text before getting your measurement. Measurements might still differ between browsers.
Build date: 11/17/2013