Victor Porof | 6e09692 | 2022-06-10 13:01:05 +0000 | [diff] [blame] | 1 | // GENERATED CONTENT - DO NOT EDIT |
| 2 | // Content was automatically extracted by Reffy into webref |
| 3 | // (https://github.com/w3c/webref) |
| 4 | // Source: Font Metrics API Level 1 (https://drafts.css-houdini.org/font-metrics-api-1/) |
| 5 | |
| 6 | partial interface Document { |
| 7 | FontMetrics measureElement(Element element); |
| 8 | FontMetrics measureText(DOMString text, StylePropertyMapReadOnly styleMap); |
| 9 | }; |
| 10 | |
| 11 | [Exposed=Window] |
| 12 | interface FontMetrics { |
| 13 | readonly attribute double width; |
| 14 | readonly attribute FrozenArray<double> advances; |
| 15 | |
| 16 | readonly attribute double boundingBoxLeft; |
| 17 | readonly attribute double boundingBoxRight; |
| 18 | |
| 19 | readonly attribute double height; |
| 20 | readonly attribute double emHeightAscent; |
| 21 | readonly attribute double emHeightDescent; |
| 22 | readonly attribute double boundingBoxAscent; |
| 23 | readonly attribute double boundingBoxDescent; |
| 24 | readonly attribute double fontBoundingBoxAscent; |
| 25 | readonly attribute double fontBoundingBoxDescent; |
| 26 | |
| 27 | readonly attribute Baseline dominantBaseline; |
| 28 | readonly attribute FrozenArray<Baseline> baselines; |
| 29 | readonly attribute FrozenArray<Font> fonts; |
| 30 | }; |
| 31 | |
| 32 | [Exposed=Window] |
| 33 | interface Baseline { |
| 34 | readonly attribute DOMString name; |
| 35 | readonly attribute double value; |
| 36 | }; |
| 37 | |
| 38 | [Exposed=Window] |
| 39 | interface Font { |
| 40 | readonly attribute DOMString name; |
| 41 | readonly attribute unsigned long glyphsRendered; |
| 42 | }; |