org.scalajs.dom
The TextMetrics interface represents the dimension of a text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.
MDN
Is a double giving the calculated width of a segment of inline text in CSS pixels.
Is 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.
(Since version 0.5.0) Considered abuse in typed JavaScript, will be removed in 0.6. Use js.Dynamic or js.prim.Boolean instead.
The TextMetrics interface represents the dimension of a text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.
MDN