On 8/20/07, Oliver Buerschaper wrote:
Dear folks,
I'm wondering how to communicate a different default bodyfont size to MetaFun ... consider this:
---
\setupbodyfont[32pt]
\starttext
\input ward
\startuseMPgraphic{test} draw unitsquare scaled BodyFontSize; draw textext.rt("Test"); draw btex \TeX etex xshifted 2*BodyFontSize; \stopuseMPgraphic \useMPgraphic{test}
\stoptext
---
Somehow MetaFun doesn't recognize the larger body font size :-( What can I do?
There's one solutions which is far better & faster & more efficient & more obedient: use \sometxt instead of btex ... etex and/or instead of textext("..."): \startuseMPgraphic{test} draw unitsquare scaled BodyFontSize; label.rt(\sometxt{Test}, origin); draw \sometxt{\TeX} xshifted 2*BodyFontSize; \stopuseMPgraphic \useMPgraphic{test} See http://dl.contextgarden.net/myway/sometxt.pdf Mojca