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 mfonts.pdf

Willi
Dirar BOUGATEF wrote:
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]
\stoptypescript
\usetypescriptfile[karat-type]
\usetypescript[karat]
\definebodyfont[MyFont][karat]
\starttext
\switchtobodyfont[MyFont]
\stoptext
This leads to the error:
bodyfont   : unknown variant MyFont
Do you see any problem here ?
Many thanks.
Dirar.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


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], which defines \MyFont.

regards,
Christopher
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


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.
Now, i don't know where you got this command from, Willie (Thanks by the way 
:) ), cause it is nowhere in mfonts.pdf nor in cont-eni.pdf.

Am really confused about the proper way to configure my fonts and use them, 
i know some trickeries but am not sure about the right way to do things.

Question:
From mfonts.pdf, it looks like there are 2 ways of configuring fonts after 
they are installed (page 9).
1. As a whole.
2. As a typeface collection.
In my understanding, when a font is defined as a whole, you can use the 
following commands to play with your font:

1. \setupbodyfont
2. \definebodyfont
3. \setupfontsynonym
4. \definefontsynonym
5. \switchtobodyfont
When it is defined as a collection of typefaces you have to use:
1. \definetypeface
2. \switchtotypeface
Now, when to use each one is a mystery.
Could anyone explain a bit more ?
Thanks.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


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]
  [align=left,
   page=right,
   placehead=yes,
   style=???,
   before={\hbox{}\vfill},
   after={\vfill},
   command=\MyPart]
Question: what command should i use to define this head to use the karat 
typeface above as its style ?
...,style={\switchtobodyfont[karat]\bfc},...
or, when no math is used,
\setupbodyfont[karat]
\definefont[MyPartFont][SansBold at 24pt]
\setuphead[part][style=\MyPartFont]
you could also add more faces to:
\starttypescript [karat]
 \definetypeface [gold]  [rm] [serif][gold]  [default] [encoding=texnansi]
 \definetypeface [karat] [ss] [sans] [karat] [default] [encoding=texnansi]
\stoptypescript
and then (say that the body font is rm (gold)), do
\setuphead[part][style=\ss\bfd]
etc etc
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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


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] 
and that i can't say something like:

\definefont[MyPartFont][karat at 24pt]
Lets say i have 5 fonts in my document i only want to say 
\setupbodyfont[MyMainFont] once, then i should have other mecanisms for 
switching properly to other fonts at different sizes.
Why does \definefont maps only from Sans, Serif, SansBold etc. ? This is 
quit fastidious, cause for this to work we have to use \setupbodyfont first 
and follow the steps above.

I may be missing something out there ..
Many thanks.
Dirar.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


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]
\setuphead[part][style=\MyPartFont]
The problem i see here is that i have to go through 
\setupbodyfont[karat] and that i can't say something like:

\definefont[MyPartFont][karat at 24pt]
actually you can, goven that karat is known
Serif SerifBold Sans SansItalic
Karat KaratBold (or maybe Karat-Bold) texnansi-karat
are all valid in a \definefont
Lets say i have 5 fonts in my document i only want to say 
\setupbodyfont[MyMainFont] once, then i should have other mecanisms for 
switching properly to other fonts at different sizes.
Why does \definefont maps only from Sans, Serif, SansBold etc. ? This is 
quit fastidious, cause for this to work we have to use \setupbodyfont 
first and follow the steps above.

I may be missing something out there ..
i think so -)
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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


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, Monsieur
\switchtobodyfont[opulent]
Madame, Monsieur
\switchtobodyfont[MyFont]
Madame, Monsieur
\stoptext
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


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]
\stoptypescript
\usetypescriptfile[karat-type]
\usetypescript[karat]
\definebodyfont[MyFont][karat]
\starttext
\switchtobodyfont[MyFont]
\stoptext
This leads to the error:
bodyfont   : unknown variant MyFont
Do you see any problem here ?
Many thanks.
Dirar.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[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,
   page=right,
   placehead=yes,
   style=???,
   before={\hbox{}\vfill},
   after={\vfill},
   command=\MyPart]
Question: what command should i use to define this head to use the karat 
typeface above as its style ?

Thanks for any help.
Dirar.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context