Difference between revisions of "Fonts"

From Wiki
Jump to navigation Jump to search
Line 8: Line 8:
  
 
<context>
 
<context>
\setuppapersize[A5]
+
\setuppapersize[A6]
\setuplayout[topspace=0.5mm, backspace=0.5mm,header=0pt, headerdistance=0pt,footer=0pt,footerdistance=0pt,width=4cm,heigth=0.6cm]
+
\setuplayout[topspace=0.5mm, backspace=0.5mm,header=0pt, headerdistance=0pt,footer=0pt,footerdistance=0pt,width=8cm,heigth=0.6cm]
 
\switchtobodyfont[12pt]
 
\switchtobodyfont[12pt]
 
\starttext
 
\starttext
\setupbodyfont[dejavu] erts
+
\switchtobodyfont[latinmodernroman] The quick brown fox jumps over the lazy dog\par
 +
\switchtobodyfont[lmsans8regular] The quick brown fox jumps over the lazy dog\par
 +
\switchtobodyfont[lmroman12regular] The quick brown fox jumps over the lazy dog\par
 +
\switchtobodyfont[texgyreadventor] The quick brown fox jumps over the lazy dog\par
 +
\switchtobodyfont[texgyrebonum] The quick brown fox jumps over the lazy dog\par
 +
\switchtobodyfont[texgyrechorus] The quick brown fox jumps over the lazy dog\par
 +
\switchtobodyfont[texgyrecursor] The quick brown fox jumps over the lazy dog\par
 +
\switchtobodyfont[texgyrepagella] The quick brown fox jumps over the lazy dog\par
 +
\switchtobodyfont[texgyreshola] The quick brown fox jumps over the lazy dog\par
 +
\switchtobodyfont[texgyretermes] The quick brown fox jumps over the lazy dog\par
 +
\switchtobodyfont[dejavuserif] The quick brown fox jumps over the lazy dog\par
 +
\switchtobodyfont[dejavusans] The quick brown fox jumps over the lazy dog\par
 +
\switchtobodyfont[dejavusansmono] The quick brown fox jumps over the lazy dog\par
 +
\switchtobodyfont[gentium] The quick brown fox jumps over the lazy dog\par
 
\stoptext
 
\stoptext
 
</context>
 
</context>

Revision as of 17:00, 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