This topic has not yet been rated - Rate this topic

measureText method

[This documentation is preliminary and is subject to change.]

Returns a CanvasTextMetrics object that contains the width of the specified text.

HTML Canvas 2D Context, Section 11Internet Explorer 9

Syntax

var retval = CanvasRenderingContext2D.measureText(text);

Standards information

Parameters

text [in]

Type: BSTR

The text to measure.

Return value

Type: Object

The width of the text, in CSS pixels.

See also

CanvasRenderingContext2D

 

 

Build date: 2/14/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ