Hi Wolfgang, I reread your mail, I am not sure, whether I understood your message correctly. therefore here what I usually do: \setupoutput[pdftex] \useMPlibrary[clp,txt] \startMPenvironment \usetypescript[palatino][texnansi] \switchtobodyfont[palatino,rm,10pt] \stopMPenvironment \startMPinclusions drawpathoptions (withpen pencircle scaled 1.5 withcolor .8white) ; drawpointoptions (withpen pencircle scaled 2.5 withcolor red) ; drawcontroloptions(withpen pencircle scaled 1 withcolor blue) ; drawlineoptions (withpen pencircle scaled 1.2 withcolor black) ; drawlabeloptions () ; swappointlabels := true ; numeric u; u := 0.5mm ; \stopMPinclusions \setupcolors[state=start] \startuniqueMPgraphic{1} mp code \stopuniqueMPgraphic \startuniqueMPgraphic{2} mp code \stopuniqueMPgraphic \startuniqueMPgraphic{2} mp code \stopuniqueMPgraphic \starttext \dorecurse{3}{% \startTEXpage \useMPgraphic{\recurselevel} \stopTEXpage} \stoptext Willi Wolfgang Zillig wrote:
Hello,
I have problems with changeing the font in Metapost. I defined my own typescripts somewhere and I also have a mapfile for that fonts. In normal text it workes fine (even math).
Now I want to change the font in MP as well (my text is included as label("test",(200,200));):
%normal stups: \loadmapfile[cmbright.map] %it seems that the mapfile is loaded only once \usetypescriptfile[type-cmbr] \usetypescript[Cmbr] \setupbodyfont[12pt]
\startMPenvironment \loadmapfile[cmbright.map] %it seems that the mapfile is loaded only once \usetypescriptfile[type-cmbr] \usetypescript[Cmbr] \setupbodyfont[12pt] \stopMPenvironment
But I always get the standard CMR output.
Did I miss a step somewhere?
Has anyone an idea what's going wrong?
Thanks for any help!
Wolfgang
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context