StringParser.getPixelSize() - Mtax-Development/GML-OOP GitHub Wiki

Arguments

Name
Type
Optional
font?
{Font|handle:font}
Yes
scale?
Yes
separation?
{int}
Yes
width?
{int}
Yes

Returns

{Vector2}

Description

Return the number of pixels the string would occupy by applying either the specified or currently set Font, at specified Scale or size of that Font. Limitations for width before forced line-break and separation between lines of text can be included by specifying them.

⚠️ **GitHub.com Fallback** ⚠️