[NTG-context] definetypeface vs math symbols

Hans Hagen pragma at wxs.nl
Tue Jul 11 10:02:25 CEST 2006


Ralf Schmitt wrote:
> Hans Hagen wrote:
>   
>> \definetypeface [charter] [it] [italics] [modern] [default][encoding=ec]
>> \definetypeface [charter] [bf] [bold] [modern] [default] [encoding=ec]
>>
>> does not make sense, 
>>     
>
> ack
>
>   
>> \usetypescript[serif][charter][ec]
>> \definetypeface [charter] [rm] [serif] [charter] [default] [encoding=ec]
>> \definetypeface [charter] [mm] [math] [modern] [default] [encoding=ec]
>> \definetypeface [charter] [tt] [mono] [charter] [default] [encoding=ec]
>>
>> \setupbodyfont [charter, 11pt] % rm si default since defined first 
>>
>>     
>
> and what is surprising to me: order does matter here. If I put the 
> definetypeface for math mode command at the front, {\bf bold} does not 
> work anymore.
>   
indeed, this is because the first one defined is the default (think of typefaces that only have ss, like optima) 

so, this may work when rm, tt or ss is defined first 

  \setupbodyfont [charter, 11pt]

but this is more robust 

  \setupbodyfont [charter, rm, 11pt]


Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-context mailing list