Typeface.measure

Measure space the given text would span. Uses dots as the unit.

If availableSpace is specified, assumes text wrapping. Text wrapping is only performed on whitespace characters.

Parameters

text String

Text to measure.

Return Value

Type: Vector2

Vector2 representing the text size, if TextRuler is not specified as an argument.

Meta