On 2011-06-09 <23:31:49>, Wolfgang Schuster wrote:
>
> Am 09.06.2011 um 23:20 schrieb Philipp Gesang:
> > ·································································
> >
> > \startMPenvironment %[global]
> > \switchtobodyfont[sans]
> > %\setupbodyfont[sans]
> > \stopMPenvironment
> >
> > %\start\setupbodyfont[sans]
> > \startuseMPgraphic{bg}
> > verbatimtex \setupbodyfont[sans] etex ;
> > draw btex I wanna get rid of those serifs! etex
> > xysized (21cm, 5cm) withcolor blue ;
> > \stopuseMPgraphic
> >
> > \definelayer[bg][x=0,y=0,width=\paperwidth,height=\paperheight]
> > \setlayer[bg]{%
> > %\setupbodyfont[sans]
> > \useMPgraphic{bg}
> > }
> > \setupbackgrounds[paper][background=bg]
> > \setupbackgrounds[state=repeat]
> > %\stop
> >
> > \starttext
> > \dorecurse{42}{I’d really like to keep my serifs! }
> > \stoptext
> >
> > ·································································
> ConTeXt postpones fontloading till \starttext, as you won’t get any
> text for elements (e.g. layers) which are set before the font was loaded
> the typewriter font is used as fallback and this is what you get.
>
> Add “\setupbodyfont[modern]” before your layer settings and switch
> the style in the MP graphic with “… btex \ss I wanna get rid … etex …”.
Thanks a lot, this does indeed achieve what I intended.
Philipp
> Wolfgang
>
>
> ___________________________________________________________________________________
> 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 : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments