On Thu, Apr 24 2008, Hans Hagen wrote:

> > - What is the meaning of each parameter of \definetypeface?
> 
> see mfonts.pdf

There are examples, but I didn't find an explanation of the parameters.
If I understand right, theses are synonyms:
rm <-> serif
ss <-> sans
tt <-> mono
mm <-> math

I'm trying to reduce redundancy, and indeed this works very well:

\definetypeface [\typescriptone] [] [serif] []

(This works too: \definetypeface [\typescriptone] [XXX] [serif] [YYY] )


In the end, I come up with the following typescript:

\starttypescript [urwgaramond]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif]                 [Garamond-Regular]
  \definefontsynonym [SerifBold]             [Garamond-Medium]
  \definefontsynonym [SerifItalic]           [Garamond-Italic]
  \definefontsynonym [SerifBoldItalic]       [Garamond-MediumItalic]
  \definefontsynonym [Garamond-Regular]      [file:GaramondNo8-Reg]
  \definefontsynonym [Garamond-Medium]       [file:GaramondNo8-Med]
  \definefontsynonym [Garamond-Italic]       [file:GaramondNo8-Ita]
  \definefontsynonym [Garamond-MediumItalic] [file:GaramondNo8-MedIta]
  \definetypeface [\typescriptone] [] [serif] []
\stoptypescript
\usetypescript[urwgaramond]
\setupbodyfont[urwgaramond]

Is this clean, or do you see any problems?

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to