text-dim ( font text -- dim )
Factor handbook » UI framework » Implementing new gadgets » Customizing gadget appearance » Implementing custom drawing logic » Rendering text

Prev:Fonts
Next:text-width ( font text -- w )


Vocabulary
ui.text

Inputs
fonta font
texta string or sequence of strings


Outputs
dima pair of integers


Word description
Outputs the dimensions of a piece of text, which is either a single-line string or an array of lines.

Definition

GENERIC: text-dim ( font text -- dim )


Methods