[NTG-context] Mixing fonts ?

Thomas A. Schmitz thomas.schmitz at uni-bonn.de
Wed May 3 13:25:41 CEST 2006


On Wed, 2006-05-03 at 12:54 +0200, WN wrote:
> I am trying to learn more about font switching (read the font manuals 
> but to no avail).
> The thing I am trying to do is :
> 
> * For normal text I want to use the Times-Roman font
> * For math's I want to use a different font, i.e. Computer Modern
> 
> I think I have to work with typescripts and use combinations of 
> \setupbodyfont but
> I cannot work out the proper combination.
> 
> Thanks for any help
> Regards
> Wim

This should work:

\usetypescript[modern]
\usetypescript[times][ec]

\definetypeface[MyFace][rm][serif][times][default][encoding=ec]
\definetypeface[MyFace][mm][math][modern][default][encoding=ec]

\setupbodyfont[MyFace,12pt]

There's some interesting stuff on the wiki:

http://wiki.contextgarden.net/Psnfss

HTH

Thomas



More information about the ntg-context mailing list