Changes

Jump to navigation Jump to search
1,288 bytes added ,  07:51, 1 June 2009
* Pagella (ts name: <code>palatino</code>; only serif)
* Termes (ts name: <code>times</code>; only serif, Heros for sans)
 
== Usage example ==
 
<texcode>
\usetypescript[palatino]
\setupbodyfont[palatino,18pt]
 
\starttext
Hello world, I'm Pagella!
\stoptext
</texcode>
 
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).
 
== 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
 
\usetypescript[Bonum]
\setupbodyfont[Bonum,12pt]
 
\starttext
Hello world, I'm Bonum!
\stoptext
</texcode>
= Old contents =

Navigation menu