fonts vocabulary
Factor handbook > Vocabulary index


Documentation
Fonts

Meta-data
Tags:fonts
Authors:Slava Pestov


Words

Tuple classes
ClassSuperclassSlots
font tuplename size bold? italic? foreground background
metrics tuplewidth ascent descent height leading cap-height x-height
selection tuplestring start end color


Symbol words
default-font-background-color
default-font-foreground-color


Ordinary words
WordStack effect
<font>( -- font )
<selection>( string start end color -- selection )
compute-height( metrics -- metrics )
default-font-size( -- value )
default-monospace-font-name( -- value )
default-sans-serif-font-name( -- value )
default-serif-font-name( -- value )
derive-font( base font -- font' )
font-with-background( font color -- font' )
font-with-foreground( font color -- font' )
font-with-size( font size -- font' )
monospace-font( -- font )
reverse-video-font( font -- font )
sans-serif-font( -- font )
serif-font( -- font )
strip-font-colors( font -- font' )


Class predicate words
WordStack effect
font?( object -- ? )
metrics?( object -- ? )
selection?( object -- ? )


Files