From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21121 Path: news.gmane.org!not-for-mail From: Wolfgang Zillig Newsgroups: gmane.comp.tex.context Subject: Re: Fonts in Metapost Date: Sat, 02 Jul 2005 12:28:24 +0200 Message-ID: <42C66C48.4030209@student.kuleuven.be> References: <42C568C6.9010401@student.kuleuven.be> <42C5764F.3070509@boede.nl> 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 1120299753 3885 80.91.229.2 (2 Jul 2005 10:22:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Jul 2005 10:22:33 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 02 12:22:25 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 1Dof8Z-0002qx-JC for gctc-ntg-context-518@m.gmane.org; Sat, 02 Jul 2005 12:22:15 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 76306127D5; Sat, 2 Jul 2005 12:30:02 +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 04156-01; Sat, 2 Jul 2005 12:30:02 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5F0F31279B; Sat, 2 Jul 2005 12:28:15 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2902A1279B for ; Sat, 2 Jul 2005 12:28:14 +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 03895-05-3 for ; Sat, 2 Jul 2005 12:28:13 +0200 (CEST) Original-Received: from rusty.kulnet.kuleuven.ac.be (rusty.kulnet.kuleuven.ac.be [134.58.240.42]) by ronja.ntg.nl (Postfix) with ESMTP id EF9201278B for ; Sat, 2 Jul 2005 12:28:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by rusty.kulnet.kuleuven.ac.be (Postfix) with ESMTP id B5CCE1D7379 for ; Sat, 2 Jul 2005 12:28:12 +0200 (CEST) Original-Received: from antonius.kulnet.kuleuven.ac.be (antonius.kulnet.kuleuven.ac.be [134.58.240.73]) by rusty.kulnet.kuleuven.ac.be (Postfix) with ESMTP id ED85A1D7356 for ; Sat, 2 Jul 2005 12:28:10 +0200 (CEST) Original-Received: from [10.8.3.195] (pc-10-8-3-195.kotnet.kuleuven.ac.be [10.8.3.195]) by antonius.kulnet.kuleuven.ac.be (Postfix) with ESMTP id D84A44C0D1 for ; Sat, 2 Jul 2005 12:28:10 +0200 (CEST) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <42C5764F.3070509@boede.nl> X-Virus-Scanned: by KULeuven Antivirus Cluster 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:21121 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21121 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 >