From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36132 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: MetaFun and different body font size Date: Tue, 21 Aug 2007 01:17:49 +0200 Message-ID: <6faad9f00708201617y2f3796b8p133f50ca0795a802@mail.gmail.com> References: <27E4566A-5705-4594-9894-A88D3D8378CD@mpq.mpg.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1187651906 20553 80.91.229.12 (20 Aug 2007 23:18:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Aug 2007 23:18:26 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 21 01:18:23 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1INGVp-000158-9p for gctc-ntg-context-518@m.gmane.org; Tue, 21 Aug 2007 01:18:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CD7E8201B1; Tue, 21 Aug 2007 01:18:19 +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 15204-09; Tue, 21 Aug 2007 01:18:03 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6A6FB2018A; Tue, 21 Aug 2007 01:18:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9391A2018A for ; Tue, 21 Aug 2007 01:17:57 +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 15096-03-2 for ; Tue, 21 Aug 2007 01:17:52 +0200 (CEST) Original-Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.229]) by ronja.ntg.nl (Postfix) with ESMTP id 6C8E720181 for ; Tue, 21 Aug 2007 01:17:52 +0200 (CEST) Original-Received: by nz-out-0506.google.com with SMTP id m7so723437nzf for ; Mon, 20 Aug 2007 16:17:51 -0700 (PDT) Original-Received: by 10.142.156.13 with SMTP id d13mr669534wfe.1187651869979; Mon, 20 Aug 2007 16:17:49 -0700 (PDT) Original-Received: by 10.143.7.3 with HTTP; Mon, 20 Aug 2007 16:17:49 -0700 (PDT) In-Reply-To: <27E4566A-5705-4594-9894-A88D3D8378CD@mpq.mpg.de> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:36132 Archived-At: On 8/20/07, Oliver Buerschaper wrote: > Dear folks, > > I'm wondering how to communicate a different default bodyfont size to > MetaFun ... consider this: > > --- > > \setupbodyfont[32pt] > > > \starttext > > \input ward > > \startuseMPgraphic{test} > draw unitsquare scaled BodyFontSize; > draw textext.rt("Test"); > draw btex \TeX etex xshifted 2*BodyFontSize; > \stopuseMPgraphic > \useMPgraphic{test} > > \stoptext > > --- > > Somehow MetaFun doesn't recognize the larger body font size :-( What > can I do? There's one solutions which is far better & faster & more efficient & more obedient: use \sometxt instead of btex ... etex and/or instead of textext("..."): \startuseMPgraphic{test} draw unitsquare scaled BodyFontSize; label.rt(\sometxt{Test}, origin); draw \sometxt{\TeX} xshifted 2*BodyFontSize; \stopuseMPgraphic \useMPgraphic{test} See http://dl.contextgarden.net/myway/sometxt.pdf Mojca ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________