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. Can you explain? Greetlings, Hraban
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
Am 2012-06-24 um 22:03 schrieb Wolfgang Schuster:
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.
Yes! Thank you very much - after hours and hours of trying to get it right, that finally fixed it. Not that obvious, is it? Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
participants (2)
-
Henning Hraban Ramm
-
Wolfgang Schuster