Changes

Jump to navigation Jump to search
97 bytes added ,  19:26, 31 May 2020
no edit summary
:* <texcode>\definefontfamily[MyFontIdentifier][rm][refcode to the serif font]</texcode>
; #3. Declare it as your default font family for your document and specify the font size
:* Use the command with {{cmd|setupbodyfont}}
:* <texcode>\setupbodyfont[MyFontIdentifier at xxpt]</texcode>
 
; #4. Specify the font size
:* <texcode>\setupbodyfont[xxpt]</texcode>
 
== Example ==
This basic input is typeset with the default font, Latin Modern:
<context source=yes>
\setupbodyfont[16pt]
The quick brown fox jumps over the lazy dog
</context>
|
And by adding the two lines discussed above, and using the reference to DejaVu Tex Gyre Pagella Serif font (dejavuseriftexgyrepagella) we obtain:
<context source=yes>
\definefontfamily [MyFontIdentifier] [rm] [dejavuseriftexgyrepagella]\setupbodyfont[MyFontIdentifier at 18pt]\setupbodyfont[16pt]
The quick brown fox jumps over the lazy dog
</context>

Navigation menu