Handbook
Glossary
<font> ( name -- font )
Factor handbook
»
UI framework
»
Implementing new gadgets
»
Customizing gadget appearance
»
Implementing custom drawing logic
»
Rendering text
»
Fonts
Prev:
font
Next:
font-with-foreground ( font color -- font' )
Vocabulary
fonts
Inputs
name
a
string
Outputs
font
a
font
Word description
Creates a new font with the given
name
and
default-font-size
,
default-font-foreground
, and
default-font-background
.
Definition
USING:
accessors
kernel
;
IN:
fonts
:
<font>
( name -- font )
font
new
swap
>>name
default-font-size
>>size
default-font-foreground
>>foreground
default-font-background
>>background
;
inline