Gets the size of the specified string.
Namespace: MindFusion.Drawing
File: Graphics.js
JavaScript Copy Code |
---|
function measureString (text, font, [width]) |
Type: String
The string to measure.
Type: Font
The font to use.
Type: Number
The maximum width.
Type: Size
The size of the given string when drawn with the given font.