Difference between revisions of "Fonts"

From Wiki
Jump to navigation Jump to search
Line 8: Line 8:
  
 
<context mode="mkiv">
 
<context mode="mkiv">
\definefontfamily [mainfacea] [rm] [latinmodernroman]
+
\definepapersize[sheet][width=16cm,height=11cm]
\definefontfamily [mainfaceb] [rm] [latinmodernsans]
+
\setuppapersize[sheet]
\definefontfamily [mainfacec] [rm] [latinmodernmono]
+
\setuplayout[topspace=0.5mm, backspace=0.5mm,header=0pt, headerdistance=0pt,footer=0pt,footerdistance=0pt,width=15cm,height=11cm]
\definefontfamily [mainfaced] [rm] [texgyreadventor]
+
\setupbodyfont[12pt]
\definefontfamily [mainfacee] [rm] [texgyrebonum]
+
\definefontfamily [latinmodernroman] [rm] [latinmodernroman]
\definefontfamily [mainfacef] [rm] [texgyrecursor]
+
\definefontfamily [latinmodernsans] [rm] [latinmodernsans]
\definefontfamily [mainfaceg] [rm] [texgyrechorus]
+
\definefontfamily [latinmodernmono] [rm] [latinmodernmono]
\definefontfamily [mainfaceh] [rm] [texgyrepagella]
+
\definefontfamily [texgyreadventor] [rm] [texgyreadventor]
\definefontfamily [mainfacei] [rm] [texgyreshola]
+
\definefontfamily [texgyrebonum]     [rm] [texgyrebonum]
\definefontfamily [mainfacej] [rm] [texgyretermes]
+
\definefontfamily [texgyrecursor]   [rm] [texgyrecursor]
\definefontfamily [mainfacek] [rm] [dejavuserif]
+
\definefontfamily [texgyrechorus]   [rm] [texgyrechorus]
\definefontfamily [mainfacel] [rm] [dejavusans]
+
\definefontfamily [texgyrepagella]   [rm] [texgyrepagella]
\definefontfamily [mainfacem] [rm] [dejavusansmono]
+
\definefontfamily [texgyreshola]     [rm] [texgyreshola]
\definefontfamily [mainfacen] [rm] [gentium]
+
\definefontfamily [texgyretermes]   [rm] [texgyretermes]
 
+
\definefontfamily [dejavuserif]     [rm] [dejavuserif]
\definepapersize[sheet][width=15cm,height=11cm]  \setuppapersize[sheet]
+
\definefontfamily [dejavusans]       [rm] [dejavusans]
\setuplayout[topspace=0.5mm, backspace=0.5mm,header=0pt, headerdistance=0pt,footer=0pt,footerdistance=0pt,width=14cm,height=11cm]
+
\definefontfamily [dejavusansmono]   [rm] [dejavusansmono]
\setupbodyfont[mainfacea]
+
\definefontfamily [gentium]         [rm] [gentium]
\switchtobodyfont[12pt]
+
\setupbodyfont[latinmodernroman]
 
 
 
\starttext
 
\starttext
\switchtobodyfont[mainfacea] The quick brown fox jumps over the lazy dog\\
+
\startitemize[n,packed]
\switchtobodyfont[mainfaceb] The quick brown fox jumps over the lazy dog\\
+
\item The quick brown fox jumps over the lazy dog (default)\\
\switchtobodyfont[mainfacec] The quick brown fox jumps over the lazy dog\\
+
\switchtobodyfont[latinmodernroman] \item The quick brown fox jumps over the lazy dog\\
\switchtobodyfont[mainfaced] The quick brown fox jumps over the lazy dog\\
+
\switchtobodyfont[latinmodernsans] \item The quick brown fox jumps over the lazy dog\\
\switchtobodyfont[mainfacee] The quick brown fox jumps over the lazy dog\\
+
\switchtobodyfont[latinmodernmono] \item The quick brown fox jumps over the lazy dog\\
\switchtobodyfont[mainfacef] The quick brown fox jumps over the lazy dog\\
+
\switchtobodyfont[texgyreadventor] \item The quick brown fox jumps over the lazy dog\\
\switchtobodyfont[mainfaceg] The quick brown fox jumps over the lazy dog\\
+
\switchtobodyfont[texgyrebonum]     \item The quick brown fox jumps over the lazy dog\\
\switchtobodyfont[mainfaceh] The quick brown fox jumps over the lazy dog\\
+
\switchtobodyfont[texgyrechorus]   \item The quick brown fox jumps over the lazy dog\\
\switchtobodyfont[mainfacei] The quick brown fox jumps over the lazy dog\\
+
\switchtobodyfont[texgyrecursor]   \item The quick brown fox jumps over the lazy dog\\
\switchtobodyfont[mainfacej] The quick brown fox jumps over the lazy dog\\
+
\switchtobodyfont[texgyrepagella]   \item The quick brown fox jumps over the lazy dog\\
\switchtobodyfont[mainfacek] The quick brown fox jumps over the lazy dog\\
+
\switchtobodyfont[texgyreshola]     \item The quick brown fox jumps over the lazy dog\\
\switchtobodyfont[mainfacel] The quick brown fox jumps over the lazy dog\\
+
\switchtobodyfont[texgyretermes]   \item The quick brown fox jumps over the lazy dog\\
\switchtobodyfont[mainfacem] The quick brown fox jumps over the lazy dog\\
+
\switchtobodyfont[dejavuserif]     \item The quick brown fox jumps over the lazy dog\\
\switchtobodyfont[mainfacen] The quick brown fox jumps over the lazy dog\\
+
\switchtobodyfont[dejavusans]       \item The quick brown fox jumps over the lazy dog\\
 +
\switchtobodyfont[dejavusansmono]   \item The quick brown fox jumps over the lazy dog\\
 +
\switchtobodyfont[gentium]         \item The quick brown fox jumps over the lazy dog\\
 +
\stopitemize
  
\stoptext
 
</context>
 
  
<context>
 
\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=2cm]
 
\definefontfamily [mainfacem] [rm] [dejavusansmono]
 
\definefontfamily [mainfacen] [rm] [gentium]
 
\setupbodyfont[mainfacem]
 
\switchtobodyfont[12pt]
 
\starttext
 
\rm
 
dejavusansmono\\
 
\switchtobodyfont[mainfacen]
 
gentium
 
 
\stoptext
 
\stoptext
 
</context>
 
</context>

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