Font:getWidth
EditReturns the maximum width of a piece of text. This function does not perform wrapping but does respect newlines in the text.
Arguments
| Name | Type | Description |
| string | string | The text to measure. |
Returns
| Name | Type | Description |
| width | number | The maximum width of the text. |
Arguments
| Name | Type | Description |
| strings | table |
A table of colored strings, each given as a { color, string } pair. The color can be a Vec3, Vec4, table, or hexcode.
|
Returns
| Name | Type | Description |
| width | number | The maximum width of the text. |