[NTG-context] times new roman, arial and courier fonts

Wolfgang Schuster schuster.wolfgang at googlemail.com
Sun Jan 24 10:59:20 CET 2010

Am 23.01.10 20:22, schrieb Marius:
> The solution to my question is:
> \usetypescriptfile[type-win]
> \starttypescript [winfonts]
>   \definetypeface [winfonts] [rm] [serif] [times]   [default]
>   \definetypeface [winfonts] [ss] [sans]  [arial]   [default]
>   \definetypeface [winfonts] [tt] [mono]  [courier] [default]
>   \definetypeface [winfonts] [mm] [math]  [times]   [default]
> \stoptypescript
> \usetypescript[winfonts]
> \setupbodyfont[winfonts,10pt]

There is another way to do this in MkIV.

\definetypeface[winfonts][rm][specserif][Times New Roman][default]
\definetypeface[winfonts][ss][specsans] [Arial]		 [default]
\definetypeface[winfonts][tt][specsmono][Courier]	 [default]
\definetypeface[winfonts][mm][math]	[times]		 [default]


The third argument is one of the three keywords specserif, specsans or 
specmono and the fourth is the familyname of the font. You could use 
spaces and uppercase letters in the familyname because ConTeXt takes 
care of this and removes them itself in the definition, this system is 
build on top of the new spec-Interface for fonts.


More information about the ntg-context mailing list