Changes

Jump to navigation Jump to search
m
no edit summary
< [[Fonts]] | [[TypeScripts]] >= Introduction =
This page tries to describe describes how to use preinstalled fonts (with the [[ConTeXt Minimals]]typescripts) typescripts with [[Mark IV|ConTeXt MkIV]](such as ConTeXt Standalone). It does ''not'' explain how this works; for this, For a deeper understanding consult the [http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf the new manual chapter on fonts] or documents cited in [[on the Fonts]]. page (These things are be warned: understanding how fonts work is not easy). You have been warned!)
Note that this page is ''in preparation''---these things fonts are difficult and I don't understand them fullysome examples on this page do not work. Some of In particular, LM fonts and the fonts mentioned below don't work for me; I hope to clear this soonTeX Gyre collection.
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 =
== Available typescripts == Each of the typescripts typescript below defines a keyword to use with <{{cmd>|setupbodyfont</cmd>}}. Usually this is the same as the name of the typescript, but there is one exception (: <code>antykwa-torunska</code>).
* Latin Modern (typescript name: <code>modern</code>; this is the default font set)
* Latin Modern variant (ts name: <code>modernvariable</code>; LM variable typewriter for serif)
* Postscript (ts name: <code>postscript</code>; Termes for serif, Heros for sans, Cursor for mono)
* Antykwa Toruńska (ts name: <code>antykwa-torunska</code>; only serif; defines <tt>antykwa</tt> as keyword for <{{cmd>|setupbodyfont</cmd>}})
* 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)
== Combining predefined fonts in your own typescripts ==
It is also possible to combine fonts from the TeX Gyre collection in your own typescripts. The example below combines Bonum (Bookman) roman, Adventor (AvantGarde) for sans serif, Cursor (Courier) for teletype, and Euler for math.The <code>rscale=...</code> option ensures that all fonts have the same x-height. (You can lookup the relative x-heigt of a font using fontforge.)
<texcode>
\starttypescript [Bonum]
\definetypeface [Bonum] [rm] [serif] [bonum] [default]
\definetypeface [Bonum] [ss] [sans] [adventor] [default] [rscale=0.887] \definetypeface [Bonum] [tt] [mono] [cursor] [default] [rscale=1.163] \definetypeface [Bonum] [mm] [math] [euler] [default] [rscale=1.050]
\stoptypescript
* [[CD_Booklet#Use_Delicious_OTF_font_with_luatex_.2F_mkiv|exljbris Delicious]]
 
[[Category:Old Content]]

Navigation menu