times new roman, arial and courier fonts
Hello all, how to set times new roman as \rm, arial as \ss and courier as \tt? \usetypescriptfile[type-win] \usetypescript[times] \usetypescript[arial] \usetypescript[courier] \setupbodyfont[times,10pt] This code sets just \rm, but \ss and \tt are left as default latin modern font. Thank you, Marius
On Sat, Jan 23, 2010 at 4:57 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Am 23.01.10 15:46, schrieb Marius:
Hello all,
how to set times new roman as \rm, arial as \ss and courier as \tt?
When you need only the Times/Arial/Courier look you can use:
\usetypescript[postscript] \setupbodyfont[postscript]
Thank you for the hint. 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]
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] \setupbodyfont[winfonts] 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. Wolfgang
participants (2)
-
Marius
-
Wolfgang Schuster