From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21124 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 13:58:34 +0200 Message-ID: <42C6816A.4030302@boede.nl> References: <42C568C6.9010401@student.kuleuven.be> <42C5764F.3070509@boede.nl> <42C66C48.4030209@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 1120305764 15564 80.91.229.2 (2 Jul 2005 12:02:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Jul 2005 12:02:44 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 02 14:02:42 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 1DoghN-0001M2-Bw for gctc-ntg-context-518@m.gmane.org; Sat, 02 Jul 2005 14:02:17 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 01A8E1279C; Sat, 2 Jul 2005 14:02:17 +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 05007-01; Sat, 2 Jul 2005 14:02:16 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E028B127A3; Sat, 2 Jul 2005 13:58:37 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4D0B8127A3 for ; Sat, 2 Jul 2005 13:58:36 +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 04792-04-3 for ; Sat, 2 Jul 2005 13:58:35 +0200 (CEST) Original-Received: from smtp-vbr15.xs4all.nl (smtp-vbr15.xs4all.nl [194.109.24.35]) by ronja.ntg.nl (Postfix) with ESMTP id 4CED11279C for ; Sat, 2 Jul 2005 13:58:35 +0200 (CEST) Original-Received: from [192.168.0.1] (a80-126-172-1.adsl.xs4all.nl [80.126.172.1]) by smtp-vbr15.xs4all.nl (8.13.3/8.13.3) with ESMTP id j62BwY7u071642 for ; Sat, 2 Jul 2005 13:58:35 +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: <42C66C48.4030209@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:21124 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21124 Hi Wolfgang, usually I compile the MetaPost fiures into a pdf. I refer to the pictures then by \externalfigure[metapost-pdf][page=1] or similar. Willi Wolfgang Zillig wrote: > Hello all, > > finaly I solved my problem: I had my metapost graphic in an external > file and used it with: > > \startuseMPgraphic{test} > \input mp.mp ; > \stopuseMPgraphic > > \useMPgraphic{test} > > or > > \startbuffer[test1] > \input mp.mp > \stopbuffer > > \processMPbuffer[test1,graphic] > > in both cases I get the graphic but the font switching does not work. > When I copy the content of my graphic file into "\startuseMPgraphic > \stopuseMPgraphic" or "\startbuffer \stopbuffer" I works. Is there an > explanation for this behaviour? I thought \input would be equal to > typing it directly. > > What is the best way to handle multiple graphics when I want to use the > font switching mechanismn? Any advice? > > Thanks alot > Wolfgang > > Willi Egger wrote: > >> Hi Wolfgang, >> >> I do hope that I am not missing something. But I think, that you >> should say in the MPenvironment: >> \setupbodyfont[Cmbr,12pt] >> >> Otherwise the setupbodyfont command does not know which font to setup. >> >> 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 >> >> >> _______________________________________________ >> ntg-context mailing list >> ntg-context@ntg.nl >> http://www.ntg.nl/mailman/listinfo/ntg-context >> > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context