Changes
Simple Typescript Example (view source)
Revision as of 16:47, 21 August 2010
, 16:47, 21 August 2010→Small extension
==Small extension==
We extend the script a litte:
<texcode>
...
\definefontsynonym [SansCaps] [name:nimbusromno9lregu]
\stoptypescript
\starttypescript [nimbus]
\definetypeface [nimbus] [rm] [serif] [nimbus]
\definetypeface [nimbus] [ss] [sans] [nimbus]
\stoptypescript
\usetypescript[nimbus]
\setupbodyfont[nimbus,rm,10pt]
\starttext
...
</texcode>
Annotations:
* A thrid typescript is defined named ''[nimbus]''
* usetypescript calls the ''typescript [[nimbus]]'' in which the ''typeface [nimbus]'' is defined
* ''typeface [nimbus]'' and ''typescript [nimbus]]'' are two totally different things
* In this example: if the ''typescript [nimbus]'' is not called via usetypescript then the ''typeface [nimbus]'' is not defined
==References==