Great, now it works!  (with luatex-r1188 and context-beta)

The typescript from Hans at the end of this message works fine.
Some questions for my understanding:
- Why 2 \starttypescript-\stoptypescript sections, and not 1?
- What does "\setups[font:fallback:serif]" mean?
- What is \definetypeface for?
- What is the meaning of each parameter of \definetypeface?
- Why does the third \starttypescript only have one parameter and no
  [serif]?

After playing around with the typescript, I got the following minmal
typescript, that seems to give the same result:

\starttypescript [urwgaramond]
   \definefontsynonym [Serif]           [file:GaramondNo8-Reg]
   \definefontsynonym [SerifBold]       [file:GaramondNo8-Med]
   \definefontsynonym [SerifItalic]     [file:GaramondNo8-Ita]
   \definefontsynonym [SerifBoldItalic] [file:GaramondNo8-MedIta]
   \definetypeface [\typescriptone] [] [serif] [\typescriptone]
\stoptypescript
\usetypescript[urwgaramond]
\setupbodyfont[urwgaramond]

I strongly believe, that Hans' typescript is better, could somebody explain
why?

Cheers, Peter




% engine=luatex
\definefontfeature[complete][liga=yes,kern=yes,compose=yes,tlig=yes,trep=yes]

\starttypescript [serif] [urwgaramond]
   \setups[font:fallback:serif]
   \definefontsynonym [Serif]           [Garamond-Regular]
   \definefontsynonym [SerifBold]       [Garamond-Medium]
   \definefontsynonym [SerifItalic]     [Garamond-Italic]
   \definefontsynonym [SerifBoldItalic] [Garamond-MediumItalic]
\stoptypescript

\starttypescript [serif] [urwgaramond]
   \definefontsynonym [Garamond-Regular]      [file:GaramondNo8-Reg]
[features=complete]
   \definefontsynonym [Garamond-Medium]       [file:GaramondNo8-Med]
[features=complete]
   \definefontsynonym [Garamond-Italic]       [file:GaramondNo8-Ita]
[features=complete]
   \definefontsynonym [Garamond-MediumItalic] [file:GaramondNo8-MedIta]
[features=complete]
\stoptypescript

\starttypescript [urwgaramond]
   \definetypeface [\typescriptone] [rm] [serif] [urwgaramond] [default]
\stoptypescript

\usetypescript[urwgaramond]
\setupbodyfont[urwgaramond]

\starttext
\rm\input knuth

\it\input knuth

\bf\input knuth

\bi\input knuth
\stoptext


-- 
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