Difference between revisions of "Fonts"

From Wiki
Jump to navigation Jump to search
Line 49: Line 49:
  
 
<context>
 
<context>
\definepapersize[sheet][width=4.1cm,height=0.7cm]  \setuppapersize[sheet]
+
\definepapersize[sheet][width=4.1cm,height=2cm]  \setuppapersize[sheet]
\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=4cm,heigth=2cm]
\definefontfamily [mainface] [rm] [texgyreadventor] \setupbodyfont[mainface]
+
\definefontfamily [mainface] [rm] [texgyreadventor]
 +
\definefontfamily [mainfacf] [rm] [gentium]
 
\switchtobodyfont[12pt]
 
\switchtobodyfont[12pt]
\starttext \rm Tex Gyre Adventor \stoptext
+
\starttext \rm Tex Gyre Adventor\\
 +
\switchtobodyfont[gentium]
 +
Tex Gyre Adventor
 +
\stoptext
 
</context>
 
</context>

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