Handbook
Glossary
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
font
a
font
text
a string or sequence of strings
Outputs
w
a 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
;