Difference between revisions of "Fonts"

From Wiki
Jump to navigation Jump to search
Line 53: Line 53:
 
\definefontfamily [mainface] [rm] [texgyreadventor]
 
\definefontfamily [mainface] [rm] [texgyreadventor]
 
\definefontfamily [mainfacf] [rm] [gentium]
 
\definefontfamily [mainfacf] [rm] [gentium]
 +
\setupbodyfont[mainface]
 
\switchtobodyfont[12pt]
 
\switchtobodyfont[12pt]
 
\starttext \rm Tex Gyre Adventor\\
 
\starttext \rm Tex Gyre Adventor\\
\switchtobodyfont[gentium]
+
\switchtobodyfont[mainfacf]
 
Tex Gyre Adventor
 
Tex Gyre Adventor
 
  \stoptext
 
  \stoptext
 
</context>
 
</context>

Revision as of 18:15, 31 May 2020

First, be aware of the 21 fonts provided by the ConTeXt distribution's Fonts.

If required, you can regenerate the font database: mtxrun --script font --reload --force

How to use the fonts included by default in the distribution