Search
Graphics.measureString Method
See Also
 






Gets the size of the specified string.

Namespace: MindFusion.Drawing
File: Graphics.js

 Syntax

JavaScript  Copy Code

function measureString (text, font, [width])

 Parameters

text

The string to measure.

font

The font to use.

width
Optional.

The maximum width.

 Return Value

The size of the given string when drawn with the given font.

 See Also