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? Oliver
Oliver Buerschaper schrieb:
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?
Hi Oliver, see http://wiki.contextgarden.net/Mpgraphic#.5CstartMPenvironment You can use one of the options [global|+|reset]. 'global' and '+' are also setting the env in the main doc (one font def for all), 'reset' brings the environment back to it's defaults (s. meta-ini.tex). Best wishes, Peter
Oliver ___________________________________________________________________________________ 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 ___________________________________________________________________________________
Somehow MetaFun doesn't recognize the larger body font size :-(
By the way, font face changes aren't reflected either ... --- \usetypescript[palatino][\defaultencoding] \setupbodyfont[palatino,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
2007/8/20, Oliver Buerschaper
Somehow MetaFun doesn't recognize the larger body font size :-(
By the way, font face changes aren't reflected either ...
---
\usetypescript[palatino][\defaultencoding]
\setupbodyfont[palatino,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
Did this work for you \startMPenvironment \usetypescript[palatino][texnansi] \switchtobodyfont[palatino,20pt] \stopMPenvironment \usetypescript[palatino][texnansi] \setupbodyfont[palatino,20pt] \starttext Text \startuseMPgraphic label("Text",origin) ; \stopuseMPgraphic \useMPgraphic \stoptext Wolfgang
Perfectly! Thanks to both of you. Oliver
Did this work for you
\startMPenvironment \usetypescript[palatino][texnansi] \switchtobodyfont[palatino,20pt] \stopMPenvironment
\usetypescript[palatino][texnansi] \setupbodyfont[palatino,20pt]
\starttext Text
\startuseMPgraphic label("Text",origin) ; \stopuseMPgraphic \useMPgraphic \stoptext
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
participants (4)
-
Mojca Miklavec
-
Oliver Buerschaper
-
Peter Rolf
-
Wolfgang Schuster