Form.calculateTextExtent

Method of Form

New in package 166

Syntax

Form.calculateTextExtent( text, font [, maxWidth] )

Parameters

Parameter Description
text Text to measure.
font Font specification in the CSS style format.
maxWidth Maximum width of the text; if specified, word wrapping might be applied to fit the text to the specified width.

Description

Calculates the width and height of a line of text using the specified font. The resulting extent is calculated to include all text, including wrapped lines, if any (see maxWidth parameter).

Examples

See Also

Form

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.