TextMetrics
Generated from idl/canvas.webidl when the site was built at 7aa23e2.
TextMetrics is an interface in idl/canvas.webidl, exposed in Window, Worker. What it does is on MDN; this page says what niso has of it.
NisoValue: TextMetrics has no state, so it crosses the C API as a struct.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| 2D canvas | Widely available | Partial 77% 1209 of 1553 subtests pass | 13 |
Members
Section titled “Members”readonly attribute double width;actualBoundingBoxLeft
Section titled “actualBoundingBoxLeft”readonly attribute double actualBoundingBoxLeft;actualBoundingBoxRight
Section titled “actualBoundingBoxRight”readonly attribute double actualBoundingBoxRight;fontBoundingBoxAscent
Section titled “fontBoundingBoxAscent”readonly attribute double fontBoundingBoxAscent;fontBoundingBoxDescent
Section titled “fontBoundingBoxDescent”readonly attribute double fontBoundingBoxDescent;actualBoundingBoxAscent
Section titled “actualBoundingBoxAscent”readonly attribute double actualBoundingBoxAscent;actualBoundingBoxDescent
Section titled “actualBoundingBoxDescent”readonly attribute double actualBoundingBoxDescent;emHeightAscent
Section titled “emHeightAscent”readonly attribute double emHeightAscent;emHeightDescent
Section titled “emHeightDescent”readonly attribute double emHeightDescent;hangingBaseline
Section titled “hangingBaseline”readonly attribute double hangingBaseline;alphabeticBaseline
Section titled “alphabeticBaseline”readonly attribute double alphabeticBaseline;ideographicBaseline
Section titled “ideographicBaseline”readonly attribute double ideographicBaseline;