TextMetrics class

The interface represents the dimensions of a piece of text in the canvas; a instance can be retrieved using the CanvasRenderingContext2D.measureText() method.

Available extensions
Annotations
  • @JS.new()
  • @staticInterop

Constructors

TextMetrics()
factory

Properties

actualBoundingBoxAscent → double

Available on TextMetrics, provided by the PropsTextMetrics extension

no setter
actualBoundingBoxDescent → double

Available on TextMetrics, provided by the PropsTextMetrics extension

no setter
actualBoundingBoxLeft → double

Available on TextMetrics, provided by the PropsTextMetrics extension

no setter
actualBoundingBoxRight → double

Available on TextMetrics, provided by the PropsTextMetrics extension

no setter
alphabeticBaseline → double

Available on TextMetrics, provided by the PropsTextMetrics extension

no setter
emHeightAscent → double

Available on TextMetrics, provided by the PropsTextMetrics extension

no setter
emHeightDescent → double

Available on TextMetrics, provided by the PropsTextMetrics extension

no setter
fontBoundingBoxAscent → double

Available on TextMetrics, provided by the PropsTextMetrics extension

no setter
fontBoundingBoxDescent → double

Available on TextMetrics, provided by the PropsTextMetrics extension

no setter
hangingBaseline → double

Available on TextMetrics, provided by the PropsTextMetrics extension

no setter
hashCode → int
The hash code for this object.
no setterinherited
ideographicBaseline → double

Available on TextMetrics, provided by the PropsTextMetrics extension

no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → double

Available on TextMetrics, provided by the PropsTextMetrics extension

no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited