From: Willi Egger <w.egger@boede.nl>
Subject: Re: Fonts in Metapost
Date: Sat, 02 Jul 2005 22:34:34 +0200 [thread overview]
Message-ID: <42C6FA5A.5050307@boede.nl> (raw)
In-Reply-To: <42C568C6.9010401@student.kuleuven.be>
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
next prev parent reply other threads:[~2005-07-02 20:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-01 16:01 Wolfgang Zillig
2005-07-01 16:58 ` Willi Egger
2005-07-01 17:44 ` Wolfgang Zillig
2005-07-02 10:28 ` Wolfgang Zillig
2005-07-02 11:58 ` Willi Egger
2005-07-02 20:34 ` Willi Egger [this message]
2005-07-03 10:49 ` Wolfgang Zillig
2005-07-03 17:26 ` Willi Egger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42C6FA5A.5050307@boede.nl \
--to=w.egger@boede.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).