Changes

Jump to navigation Jump to search
How to use preinstalled fonts in MkIV in an easy way
This page tries to describe how to use different typescripts with ConTeXt MkIV. It does ''not'' explain how this works; for this, consult [http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf|the 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: <code>postscript</code>; Termes for serif, Heros for sans, Cursor for mono)
* Antykwa Toruńska (ts name: <code>antykwa-torunska</code>; only serif) ('''didn't work for me!''')
* Iwona (ts name: <code>iwona</code>; only sans serif)
* Iwona Light, Medium and Heavy (ts names: <code>iwona-light</code>, <code>iwona-medium</code>, <code>iwona-heavy</code>; only sans; the medium variant is a small bit heavier than a "regular" one)
* Concrete (ts name: <code>concrete</code>; only serif) ('''didn't work for me!''')
* Kurier (ts name: <code>kurier</code>) ('''didn't work for me!''')
* Antykwa Półtawskiego ('''didn't work for me!''')
* Pagella (ts name: <code>palatino</code>; only serif)
* Termes (ts name: <code>times</code>; only serif, turns Heros as sans)
* Heros (ts name: <code>helvetica</code>; only sans; needs <code>\ss</code> to be turned on)
* Bonum (ts name: <code>bookman</code>; only serif) ('''didn't work for me!''')
* Schola (ts name: <code>schoolbook</code>) ('''didn't work for me!''')
* Adventor ('''didn't work for me!''')
* Cursor (ts name: <code>courier</code>; don't confuse with Kursor!) ('''didn't work for me!''')
* Chorus (ts name: <code>chancery</code>) ('''didn't work for me!''')

== Usage example ==

<texcode>
\usetypescriptfile[type-otf]
\usetypescript[palatino]
\setupbodyfont[palatino,18pt]

\starttext
Hello world, I'm Pagella!
\stoptext
</texcode>

The first line loads the file type-otf.tex with necessary definitions. The second one seems to order ConTeXt to "install" 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).
27

edits

Navigation menu