Gets the size of the specified string.
Namespace: MindFusion.Drawing
File: Graphics.js
JavaScript Copy Code |
---|
function measureString (text, font, [width]) |
The string to measure.
The font to use.
The maximum width.
The size of the given string when drawn with the given font.
JavaScript Pack Programmer's Guide | © 2024 MindFusion |