Difference between revisions of "ConTeXt distribution's Fonts"

From Wiki
Jump to navigation Jump to search
(corrected code names of the fonts, so that fontswitching works and added all the fonts from the table into the example)
(One intermediate revision by one other user not shown)
Line 96: Line 96:
 
| -
 
| -
 
| Old Style, Serif transitional,
 
| Old Style, Serif transitional,
| ITC Zapf Chancery
+
| ITC Bookman
 
<!------------------------------------------------------------------------------>
 
<!------------------------------------------------------------------------------>
 
|-
 
|-
Line 172: Line 172:
 
\starttext \rm Tex Gyre Schola \stoptext
 
\starttext \rm Tex Gyre Schola \stoptext
 
</context><br>
 
</context><br>
shola
+
schola
 
| -
 
| -
 
| -
 
| -
Line 411: Line 411:
 
\switchtobodyfont[heros]                \getbuffer[line] \wordright{Tex Gyre Heros}        \par
 
\switchtobodyfont[heros]                \getbuffer[line] \wordright{Tex Gyre Heros}        \par
 
\switchtobodyfont[pagella]              \getbuffer[line] \wordright{TeX Gyre Pagella}      \par
 
\switchtobodyfont[pagella]              \getbuffer[line] \wordright{TeX Gyre Pagella}      \par
\switchtobodyfont[shola]               \getbuffer[line] \wordright{TeX Gyre Schola}        \par
+
\switchtobodyfont[schola]               \getbuffer[line] \wordright{TeX Gyre Schola}        \par
 
\switchtobodyfont[termes]              \getbuffer[line] \wordright{Tex Gyre Termes}        \par
 
\switchtobodyfont[termes]              \getbuffer[line] \wordright{Tex Gyre Termes}        \par
 
\switchtobodyfont[dejavu]              \getbuffer[line] \wordright{DejaVu serif}          \par
 
\switchtobodyfont[dejavu]              \getbuffer[line] \wordright{DejaVu serif}          \par

Revision as of 00:30, 18 June 2022

A collection of fonts is called a typescript in ConTeXt. The following typescripts are available for fonts distributed with ConTeXt (the name of the typescript is shown as typescriptname):

  • The Latin Modern font family, which is a modern version of standard TeX font Computer Modern:
    • modern: synonym modern-base
    • modernvariable: synonym modern-variable (a variable width typewriter font)
  • The TeX Gyre Collection of Fonts, cross-platform OpenType formats.
    • pagella: synonym palatino
    • termes: synonym times
    • heros: synonym helvetica
    • bonum: synonym bookman
    • scholas: synonym schoolbook
    • adventor: synonym avantgarde
    • cursor: synonym courier
    • chorus: synonym chancery
  • The DejaVu font family : dejavu and dejavu-condensed
  • 6 additionals fonts (covering serif, sans serif, and monospaced)
    • Gentium : gentium
    • Antykwa Poltawskiego : antykwapoltawskiego
    • Antykwa Toruńska: antykwa
    • Kurier : kurier,ss
    • Iwona: iwona
  • 3 additional math fonts:
    • Euler: eulernova
    • STIX2: stixtwo
    • XITS: xits
Name Serif Sans serif Monospaced Class Similar to
Latin Modern


modern


modern,ss


modern,tt

Didone, current TeX standard, [1]. Computer Modern
Tex Gyre Adventor -


adventor

- Geometric sans-serif ITC Avant Garde Gothic
Tex Gyre Bonum


bonum

- - Old Style, Serif transitional, ITC Bookman
Tex Gyre Chorus


chorus

- - Script ITC Zapf Chancery
Tex Gyre Cursor - -


cursor

Monospaced, Slab serif Courier
Tex Gyre Heros -


heros

- Geometric sans-serif Helvetica
Tex Gyre Pagella


pagella

- - Old Style, Serif Palatino
Tex Gyre Schola


schola

- - Serif transitional Century Schoolbook
Tex Gyre Termes


termes

- - Old Style transitional Times (new) Roman
DejaVu


dejavu


dejavu,ss


dejavu,tt

Sans-serif, Humanist Bitstream Prima
Gentium


gentium

- - Old Style
Antykwa Poltawskiego


antykwapoltawskiego

- Antiqua
Antykwa Toruńska


antykwa

- - Antiqua
Kurier -


kurier,ss

- Sans serif
Iwona -


iwona

- Sans serif, alternative to Kurier
Arabic-Latin Modern Fixed - -


almfixed,tt

extension of TeX-Gyre LM Mono 10
Euler


eulernova

- - An upright cursive typeface, for maths.
STIX2


stixtwo

- - Scientific and Technical Information Exchange fonts.For scientific typesetting with proper mathematical support Times (new) Roman
XITS


xits

- - Clone of STIX font Times (new) Roman

Overview

% Specific layout for rendering on the wiki, for rendering a similar pdf via context, add some width

\definepapersize[sheet][width=16cm,height=25cm]
\setuppapersize[sheet]
\setuplayout[topspace=0.5mm,
             backspace=0.5mm,
             header=0pt,
             headerdistance=0pt,
             footer=0pt,
             footerdistance=0pt,
             width=15.9cm,
             height=24.9cm,
             leftmargin=0.5mm,
             grid=yes]

%
\setupbodyfont[modern]
\setupwhitespace[medium]

% this enlarges the fonts, see Font Switching on the wiki
\tfb

%
\starttext

\startbuffer[line]
The quick brown fox jumps over the lazy dog!
\stopbuffer
                                        \getbuffer[line] \wordright{default --- Latin Modern serif} \par
\switchtobodyfont[modern,ss]            \getbuffer[line] \wordright{Latin Modern sans}      \par
\switchtobodyfont[modern,tt]            \getbuffer[line] \wordright{Latin Modern mono}      \par
\switchtobodyfont[adventor]             \getbuffer[line] \wordright{TeX Gyre Adventor}      \par
\switchtobodyfont[bonum]                \getbuffer[line] \wordright{TeX Gyre Bonum}         \par
\switchtobodyfont[chorus]               \getbuffer[line] \wordright{TeX Gyre Chorus}        \par
\switchtobodyfont[cursor]               \getbuffer[line] \wordright{TeX Gyre Cursor}        \par
\switchtobodyfont[heros]                \getbuffer[line] \wordright{Tex Gyre Heros}         \par
\switchtobodyfont[pagella]              \getbuffer[line] \wordright{TeX Gyre Pagella}       \par
\switchtobodyfont[schola]               \getbuffer[line] \wordright{TeX Gyre Schola}        \par
\switchtobodyfont[termes]               \getbuffer[line] \wordright{Tex Gyre Termes}        \par
\switchtobodyfont[dejavu]               \getbuffer[line] \wordright{DejaVu serif}           \par
\switchtobodyfont[dejavu,ss]            \getbuffer[line] \wordright{DejaVu sans}            \par
\switchtobodyfont[dejavu,tt]            \getbuffer[line] \wordright{DejaVu sansmono}        \par
\switchtobodyfont[gentium]              \getbuffer[line] \wordright{Gentium}                \par
\switchtobodyfont[antykwa]              \getbuffer[line] \wordright{Antykwa Toruńska}       \par
\switchtobodyfont[antykwapoltawskiego]  \getbuffer[line] \wordright{Antykwa Półtawskiego}   \par
\switchtobodyfont[kurier,ss]            \getbuffer[line] \wordright{Kurier}                 \par
\switchtobodyfont[iwona]                \getbuffer[line] \wordright{Iwona}                  \par
\switchtobodyfont[almfixed,tt]          \getbuffer[line] \wordright{ALM Fixed}              \par
\switchtobodyfont[eulernova]            \getbuffer[line] \wordright{Euler (for math)}       \par
\switchtobodyfont[stixtwo]              \getbuffer[line] \wordright{STIX Two}               \par
\switchtobodyfont[xits]                 \getbuffer[line] \wordright{XITS (for math)}        \par

\stoptext

This produces:

Symbols

Distribution also provides with:

A page is dedicated to Symbols