text-width ( font text -- w )
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
fonta font
texta string or sequence of strings


Outputs
wa positive integer


Word description
Outputs the width of a piece of text.

Definition