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

Arguments

Name
Type
Optional
font?
{Font|int:font}
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. Limitations of width before forced line-break and separation between lines of text can be specified to be included.

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