REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: size-text


Returns the xy size of face text. This function can be used to determine the size of text in advance, allowing code to make adjustments before displaying the text.

Note that the face does not need to be shown for this function to work correctly.

f: make gob! [text: "Hello there"]
size-text f

Note also the size of the text depends on the font used for the text.

  TOC < Back Next > - WIP Wiki Feedback Admin