40 lines
1.2 KiB
Factor
40 lines
1.2 KiB
Factor
|
! Copyright (C) 2009 Slava Pestov
|
||
|
! See http://factorcode.org/license.txt for BSD license.
|
||
|
USING: help.markup help.syntax kernel colors ;
|
||
|
IN: fonts
|
||
|
|
||
|
HELP: <font>
|
||
|
{ $values { "font" font } }
|
||
|
{ $description "Creates a new font." } ;
|
||
|
|
||
|
HELP: font
|
||
|
{ $class-description "The class of fonts." } ;
|
||
|
|
||
|
HELP: font-with-background
|
||
|
{ $values
|
||
|
{ "font" font } { "color" color }
|
||
|
{ "font'" font }
|
||
|
}
|
||
|
{ $description "Creates a new font equal to the given font, except with a different " { $slot "background" } " slot." } ;
|
||
|
|
||
|
HELP: font-with-foreground
|
||
|
{ $values
|
||
|
{ "font" font } { "color" color }
|
||
|
{ "font'" font }
|
||
|
}
|
||
|
{ $description "Creates a new font equal to the given font, except with a different " { $slot "foreground" } " slot." } ;
|
||
|
|
||
|
ARTICLE: "fonts" "Fonts"
|
||
|
"The " { $vocab-link "fonts" } " vocabulary implements a data type for fonts that other vocabularies, for example " { $link "ui" } ", can use. A font combines a font name, size, style, and color information into a single object."
|
||
|
{ $subsection font }
|
||
|
{ $subsection <font> }
|
||
|
"Modifying fonts:"
|
||
|
{ $subsection font-with-foreground }
|
||
|
{ $subsection font-with-background }
|
||
|
"Useful constants:"
|
||
|
{ $subsection monospace-font }
|
||
|
{ $subsection sans-serif-font }
|
||
|
{ $subsection serif-font } ;
|
||
|
|
||
|
ABOUT: "fonts"
|