Difference between revisions of "Fonts"

From Wiki
Jump to navigation Jump to search
Line 26: Line 26:
 
\definefontfamily [dejavusansmono]  [rm] [dejavusansmono]
 
\definefontfamily [dejavusansmono]  [rm] [dejavusansmono]
 
\definefontfamily [gentium]          [rm] [gentium]
 
\definefontfamily [gentium]          [rm] [gentium]
 
+
\setupbodyfont[latinmodernroman]
 
\starttext
 
\starttext
 
\startitemize[n,packed]
 
\startitemize[n,packed]
Line 46: Line 46:
 
\stopitemize
 
\stopitemize
 
\stoptext
 
\stoptext
 +
</context>
 +
 +
<context>
 +
\definepapersize[sheet][width=4.1cm,height=0.7cm]  \setuppapersize[sheet]
 +
\setuplayout[topspace=0.5mm, backspace=0.5mm,header=0pt, headerdistance=0pt,footer=0pt,footerdistance=0pt,width=4cm,heigth=0.6cm]
 +
\definefontfamily [mainface] [rm] [texgyreadventor] \setupbodyfont[mainface]
 +
\switchtobodyfont[12pt]
 +
\starttext \rm Tex Gyre Adventor \stoptext
 
</context>
 
</context>

Revision as of 18:13, 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