Provides an object that contains the width attribute that the measureText method sets.
![]() |
Members
The CanvasTextMetrics object has these types of members:
Properties
The CanvasTextMetrics object has these properties.
| Property | Description |
|---|---|
|
Gets the width, in CSS pixels, of a given box of text. |
Standards information
- HTML Canvas 2D Context, Section 1
Send comments about this topic to Microsoft
Build date: 11/28/2012
.png)
.png)