TextMetrics

@native @JSGlobal @JSType
class TextMetrics extends Object

The TextMetrics interface represents the dimension of a text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object

Concrete fields

var width: Double

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.

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.