Changes

Jump to navigation Jump to search
no edit summary
= How to use one of the provided fonts =__NOTOC__
First, be aware of have a look at the [[ConTeXt distribution's Fonts|21 provided fonts provided]] and their "nickname".:
; #1. Give a name = How to use one of the set of provided fonts you want to use and select a first font:* Use the command {{cmd|definefontfamily}}.:* Let's take an example, for a Serif font, for which TeX practice is to refer to them as '''roman''' (=rm):* <texcode>\definefontfamily[MyFontIdentifier][rm][nickname of the serif font]</texcode>
; #21. Declare it as your default the font family you want to use for your document:* Use the command with {{cmd|setupbodyfont}}:* <texcode>\setupbodyfont[MyFontIdentifierthefontnickname]</texcode>
; #32. Specify the font size
:* <texcode>\setupbodyfont[xxpt]</texcode>
</context>
|
And let's add the two lines, using reference to Tex Gyre Pagella Serif font (ref:texgyrepagella):
<context source=yes>
\definefontfamily [MyFontIdentifier] [rm] [texgyrepagella]\setupbodyfont[MyFontIdentifierpagella]
\setupbodyfont[12pt]
{The quick brown fox jumps over the lazy dog}\\
</context>
}}
 
= How to use more than one of the provided fonts =

Navigation menu