Peter Münster wrote:
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?
taste and acess to verbose fontname
- What does "\setups[font:fallback:serif]" mean?
just grep for font:fallback in type*
- What is \definetypeface for?
to make a collection out of font with diifferent styles
- What is the meaning of each parameter of \definetypeface?
see mfonts.pdf
- Why does the third \starttypescript only have one parameter and no [serif]?
lazynessa, after all, gamamond is a 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?
in a document with multiple fonts it may be handy to be able to say: \definedfont[Garamond-Regular*default at 36pt]Some Big Title
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
-- ----------------------------------------------------------------- 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 -----------------------------------------------------------------