From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21128 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: Fonts in Metapost Date: Sat, 02 Jul 2005 22:34:34 +0200 Message-ID: <42C6FA5A.5050307@boede.nl> References: <42C568C6.9010401@student.kuleuven.be> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1120336485 19469 80.91.229.2 (2 Jul 2005 20:34:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Jul 2005 20:34:45 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 02 22:34:45 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DoohH-00077I-9U for gctc-ntg-context-518@m.gmane.org; Sat, 02 Jul 2005 22:34:43 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EA1D6127A6; Sat, 2 Jul 2005 22:34:42 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07720-05; Sat, 2 Jul 2005 22:34:39 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 62EC9127A2; Sat, 2 Jul 2005 22:34:39 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D28CB127A2 for ; Sat, 2 Jul 2005 22:34:37 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07706-07-2 for ; Sat, 2 Jul 2005 22:34:36 +0200 (CEST) Original-Received: from smtp-vbr10.xs4all.nl (smtp-vbr10.xs4all.nl [194.109.24.30]) by ronja.ntg.nl (Postfix) with ESMTP id EA6061279F for ; Sat, 2 Jul 2005 22:34:36 +0200 (CEST) Original-Received: from [192.168.0.1] (a80-126-172-1.adsl.xs4all.nl [80.126.172.1]) by smtp-vbr10.xs4all.nl (8.13.3/8.13.3) with ESMTP id j62KYacE039154 for ; Sat, 2 Jul 2005 22:34:36 +0200 (CEST) (envelope-from w.egger@boede.nl) User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <42C568C6.9010401@student.kuleuven.be> X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21128 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21128 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