Packages

c

org.scalajs.dom.raw

TextMetrics

class TextMetrics extends Object

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

MDN

Annotations
@JSType() @native() @JSGlobal()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TextMetrics
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TextMetrics()

Value Members

  1. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  2. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  3. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  4. def toLocaleString(): String
    Definition Classes
    Object
  5. def valueOf(): Any
    Definition Classes
    Object
  6. var width: Double

    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.

    MDN