void TextSize(@rect sizeRect, string text, number font[, number maxWidth])
The given string is analized with the specified font to determine how much space it will take up on the screen when it's printed. maxWidth specifies how long each line can be. If it is not specified, then 192 is assumed. It returns the bounds of the rectangle in sizeRect.
See Also: Display