At 11:11 PM 4/4/2002 +0200, Patrick Gundlach wrote:
>Hi,
>
>one other question:
>
>why do I have to say  \switchtobodyfont [rm] in order to switch to the new
>font? The  \showbodyfont looks ok but everything is typeset in the old \rm
>(cmr)
>
>by the way: what is the preferred method to switch the \rm style only? I
>would like to be able to say \usetypescript[times] and have the \rm
>changed, but leave the \ss and \tt alone. So it would stay at cmss and
>cmtt, unless I issue a changing command.
>
>
>file a.tex:
>
>\enableregime [il1]
>\setupencoding[default=ec]
>\usetypescriptfile[type-tetex]
>\usetypescript[tetex]
>\starttext
>\switchtobodyfont [rm]%  <----------------- this line
>The quick brown fox jumps over the 1234567890 lazy dog ��� � ���
>\showcharacters
>\showbodyfont
>\stoptext
>
>
>
>file type-tetex.tex:
>%% do not use :) except for experiments
>%% Patrick Gundlach
>%% Last Change: Thu Apr  4 23:00:30 2002
>
>% Times-Roman
>\starttypescript [tetexnames][ec]

or [serif][tetextimes][ec]

>  \definefontsynonym [Times-Roman]      [ptmr8t]  [encoding=ec]
>  \definefontsynonym [Times-Italic]     [ptmri8t] [encoding=ec]
>  \definefontsynonym [Times-Bold]       [ptmb8t]  [encoding=ec]
>  \definefontsynonym [Times-BoldItalic] [ptmbi8t] [encoding=ec]
>  \definefontsynonym [Times-Slanted]    [ptmro8t] [encoding=ec]
>  \definefontsynonym [Times-BoldSlanted][ptmbo8t] [encoding=ec]
>  \definefontsynonym [Times-Caps]       [ptmrc8t] [encoding=ec]
>  \definefontsynonym [Times-BoldCaps]   [ptmbc8t] [encoding=ec]
>\stoptypescript
>\starttypescript[serif][tetextimes][name]
>  \definefontsynonym [Serif]           [Times-Roman]
>  \definefontsynonym [SerifItalic]     [Times-Italic]
>  \definefontsynonym [SerifBold]       [Times-Bold]
>  \definefontsynonym [SerifBoldItalic] [Times-BoldItalic]
>  \definefontsynonym [SerifSlanted]    [Times-Slanted]
>  \definefontsynonym [SerifBoldSlanted][Times-BoldSlanted]
>  \definefontsynonym [SerifCaps]       [Times-Caps]
>  \definefontsynonym [SerifBoldCaps]   [Times-BoldCaps]
>\stoptypescript

not needed:

>\starttypescript [tetex]
>   \usetypescript[tetexnames][ec]
>   \usetypescript[serif][tetextimes][name]% mapping Serif-> Times-Roman
>   \usetypescript[serif][default][size]% type-siz.tex
>\stoptypescript

better:

\usetypescript[tetexnames][ec]

\definetypeface[patrick][rm][serif][tetextimes][default][encoding=ec]

\setupbodyfont[patrick,10pt]

(untested)
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-ade.nl
-------------------------------------------------------------------------

Reply via email to