1 ! Copyright (C) 2009 Slava Pestov
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: help.markup help.syntax kernel colors ;
7 { $values { "font" font } }
8 { $description "Creates a new font." } ;
11 { $class-description "The class of fonts." } ;
13 HELP: font-with-background
15 { "font" font } { "color" color }
18 { $description "Creates a new font equal to the given font, except with a different " { $slot "background" } " slot." } ;
20 HELP: font-with-foreground
22 { "font" font } { "color" color }
25 { $description "Creates a new font equal to the given font, except with a different " { $slot "foreground" } " slot." } ;
27 ARTICLE: "fonts" "Fonts"
28 "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."
44 "A data type for font metrics. The " { $vocab-link "fonts" } " vocabulary does not provide any means of computing font metrics, it simply defines a common data type that other vocabularies, such as " { $vocab-link "ui.text" } " may use:"
45 { $subsections metrics } ;