42 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Factor
		
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.5 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 }
 | 
						|
"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:"
 | 
						|
{ $subsection metrics } ;
 | 
						|
 | 
						|
ABOUT: "fonts"
 |