TextMetrics
js.html.TextMetrics (extern class)
The TextMetrics interface represents the dimension of a text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.
Documentation TextMetrics by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Instance Members
width: FloatIs a double giving the calculated width of a segment of inline text in CSS pixels. It takes into account the current font of the context.