Old: A Beginner's Guide to Using Fonts in Mark IV

From Wiki
Revision as of 10:57, 28 August 2008 by Mbork (talk | contribs) (deleted the sentence about type-otf; some more explanation at the beginning)
Jump to navigation Jump to search

This page tries to describe how to use preinstalled (with the ConTeXt Minimals) typescripts with ConTeXt MkIV. It does not explain how this works; for this, consult new manual chapter on fonts or documents cited in Fonts. (These things are not easy. You have been warned!)

Note that this page is in preparation---these things are difficult and I don't understand them fully. Some of the fonts mentioned below don't work for me; I hope to clear this soon.

I assume here that we have a working ConTeXt Mark IV installation, for example ConTeXt Minimals. In particular, we have LM fonts, the TeX Gyre collection and some other ones.

Available typescripts

  • Latin Modern (the default)
  • Postscript (typescript name: postscript; Termes for serif, Heros for sans, Cursor for mono)
  • Antykwa Toruńska (ts name: antykwa-torunska; only serif) (didn't work for me!)
  • Iwona (ts name: iwona; only sans serif)
  • Iwona Light, Medium and Heavy (ts names: iwona-light, iwona-medium, iwona-heavy; only sans; the medium variant is a small bit heavier than a "regular" one)
  • Concrete (ts name: concrete; only serif) (didn't work for me!)
  • Kurier (ts name: kurier) (didn't work for me!)
  • Antykwa Półtawskiego (didn't work for me!)
  • Pagella (ts name: palatino; only serif)
  • Termes (ts name: times; only serif, turns Heros as sans)
  • Heros (ts name: helvetica; only sans; needs \ss to be turned on)
  • Bonum (ts name: bookman; only serif) (didn't work for me!)
  • Schola (ts name: schoolbook) (didn't work for me!)
  • Adventor (didn't work for me!)
  • Cursor (ts name: courier; don't confuse with Kursor!) (didn't work for me!)
  • Chorus (ts name: chancery) (didn't work for me!)

Usage example

\usetypescript[palatino]
\setupbodyfont[palatino,18pt]

\starttext
Hello world, I'm Pagella!
\stoptext

The first line seems to order ConTeXt to "install" (for the current file) the given typescript (it accepts what I have earlier called a "typescript name"). The last one starts using it (you may omit the size if you are satisfied with the default).