Re: [NTG-context] Fonts switching and styles ..

2004-11-23 Thread Willi Egger
Hi Dirar, What you have is apparently different already defined typefaces. So use switchtoypeface to change from karat to opulent. Then switchtobodyfont[karat,12pt] or whatever. You can not use the command definebodyfont in the way you do. For details for this command please refer to the manual

Re: [NTG-context] Fonts switching and styles ..

2004-11-23 Thread Christopher Creutzig
Dirar BOUGATEF wrote: \definebodyfont[MyFont][karat] \starttext \switchtobodyfont[MyFont] \stoptext I believe \definebodyfont[MyFont][karat] should be \definefontsynonym[MyFont][karat], which should allow \switchtobodyfont[MyFont], but you may also be looking for \definefont[MyFont][karat],

Re: [NTG-context] Fonts switching and styles ..

2004-11-23 Thread Dirar BOUGATEF
Thanks Christopher, i have tried what you asked me but this didn't solve the problem. To me it was the right thing to do, but it looks like it is because my font is defined as a typeface collection that it does not work. I have tried \switchtotypeface instead as Willie said and this works fine.

Re: [NTG-context] Fonts switching and styles ..

2004-11-22 Thread h h extern
Dirar BOUGATEF wrote: Hi all, I am working to setup styles in heads with the typeface karat, that i define as follows: \starttypescript [karat] \definetypeface [karat] [ss] [sans] [karat] [default] [encoding=texnansi] \stoptypescript Here is my head definition: \setuphead[part]

Re: [NTG-context] Fonts switching and styles ..

2004-11-22 Thread Dirar BOUGATEF
I have tried style={\switchtobodyfont[karat]} and it works. Now how to switch to a different size without going through: \setupbodyfont[karat] \definefont[MyPartFont][SansBold at 24pt] \setuphead[part][style=\MyPartFont] The problem i see here is that i have to go through \setupbodyfont[karat]

Re: [NTG-context] Fonts switching and styles ..

2004-11-22 Thread Hans Hagen
Dirar BOUGATEF wrote: I have tried style={\switchtobodyfont[karat]} and it works. Now how to switch to a different size without going through: you can do things like: \usetypescript [sans][karat][map,name] to load the appropriate defs \definefont[MyPartFont][SansBold at 24pt]

Re: [NTG-context] Fonts switching and styles ..

2004-11-22 Thread Dirar BOUGATEF
i have tried this, and leads to: bodyfont : unknown variant MyFont \usetypescriptfile[karat-type] \usetypescript[karat] \usetypescriptfile[opulent-type] \usetypescript[opulent] \usetypescript [sans][karat][map,name] \definefont[MyFont][karat] \starttext \switchtobodyfont[karat] Madame,

Re: [NTG-context] Fonts switching and styles ..

2004-11-22 Thread Dirar BOUGATEF
Hi Willy, What i need is to have a synonym for the font Dirar you defined, how do i have to proceed? I have tried the following: (Am gonna use my fonts names as i started the subject with) \starttypescript [karat] \definetypeface [karat] [ss] [sans] [karat] [default] [encoding=texnansi]

[NTG-context] Fonts switching and styles ..

2004-11-21 Thread Dirar BOUGATEF
Hi all, I am working to setup styles in heads with the typeface karat, that i define as follows: \starttypescript [karat] \definetypeface [karat] [ss] [sans] [karat] [default] [encoding=texnansi] \stoptypescript Here is my head definition: \setuphead[part] [align=left,