fonts vocabulary
Factor handbook ยป Vocabulary index


Documentation
Fonts

Metadata
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


Ordinary words
WordStack effect
<font>( name -- font )
<selection>( string start end color -- selection )
compute-height( metrics -- metrics )
default-font-background( -- color )
default-font-foreground( -- color )
default-font-size( -- size )
default-monospace-font-name( -- name )
default-sans-serif-font-name( -- name )
default-serif-font-name( -- name )
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


Metadata files