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.

(var sizeRect[4])
TextSize(sizeRect "Hello World" 4 100)
/* gets the bounds of "Hello World" with FONT.004 with a maximum line width of 100 */

See Also: Display