Am 22.06.2012 um 23:54 schrieb Henning Hraban Ramm:
Ahoj,
the following example works on itself, but not in the environment of my current project:
\starttypescript [handwriting] [devroye] \definefontsynonym [Devroye] [file:devroye] [features=default] \stoptypescript
\starttypescript [handwriting] [devroye] [name] \definefontsynonym [Handwriting] [Devroye] [features=default] \stoptypescript
\definetypeface [test] [rm] [serif] [schoolbook] [default] \definetypeface [test] [hw] [handwriting] [devroye][default]
\definefont [TitelFont][Handwriting at 16pt]
\setupbodyfont[test,rm,8.5pt]
\starttext
{\TitelFont Test}
\input knuth
{\hw Don Knuth}
\stoptext
In the project, I get the hw font, but the body font is LM Roman 12pt.
I get TeX Gyre Schola only if I use \setupbodyfont[schoolbook,rm,8.5pt], but that fails as soon as I define \definetypeface [schoolbook] [hw] [handwriting] [devroye][default] – in the minimal example that works, too.
Add \definebodyfontenvironment[8.5pt] to your environment file. Wolfgang