REBOL Document

Size-text - Function Summary


Summary:

Returns the size of the text in a face.

Usage:

size-text face

Arguments:

face - The face argument. (must be: object)

Description:

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 face [text: "Hello there"]
    size-text f

Related:

show - Display a face or block of faces.


<Back | Index | Next>

Copyright 2004 REBOL Technologies