Handbook
Glossary
string-height ( font string -- h )
Factor handbook
»
UI framework
»
Implementing new gadgets
»
Customizing gadget appearance
»
Implementing custom drawing logic
»
Rendering text
Prev:
string-width ( font string -- w )
Next:
string-dim ( font string -- dim )
Vocabulary
ui
.
text
.
private
Inputs
font
a
font
string
a
string
Outputs
h
a positive integer
Generic word contract
Outputs the height of a string.
Notes
This is a low-level word; use
text-height
instead.
Definition
USING:
sequences
;
IN:
ui.text.private
:
string-height
( font string -- h )
string-dim
second
;
inline