Font:getWidth

Edit

Returns the maximum width of a piece of text. This function does not perform wrapping but does respect newlines in the text.



Arguments

NameTypeDescription
stringstring The text to measure.

Returns

NameTypeDescription
widthnumber The maximum width of the text.

Arguments

NameTypeDescription
stringstable A table of multicolor strings to measure. The colors aren't used for anything, this just exists to match Pass:text.

Returns

NameTypeDescription
widthnumber The maximum width of the text.

See also