text-width ( font text -- w )
Factor documentation > Factor handbook > UI framework > Implementing new gadgets > Customizing gadget appearance > Implementing custom drawing logic > Rendering text
Prev:text-dim ( font text -- dim )
Next:text-height ( font text -- h )


Vocabulary
ui.text

Inputs and outputs
fonta font
texta string or sequence of strings
wa positive integer


Word description
Outputs the width of a piece of text.

Definition
USING: sequences ;

IN: ui.text

: text-width ( font text -- w ) text-dim first ;