Spec-Zone.ru › Haxe JavaScript

TextMetrics

package js.html

Available on js

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 also:

  • https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics

Variables

read onlywidth:Float

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.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/TextMetrics.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API