TextMetrics

Availability

BlackBerry Device Software 6.0 or later

The TextMetrics object is returned by CanvasRenderingContext2D.measureText(). It has a single attribute, width, which returns the width of a block of text.

Properties

Property name

Type

Description

Status

Support level

Availability

width

float

Returns the width of a block of text, in pixels.

read only

HTML 5

6.0 or later

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus