From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29944 Path: news.gmane.org!not-for-mail From: David Wooten Newsgroups: gmane.comp.tex.context Subject: \startMPenvironment : personal font weirdness Date: Thu, 03 Aug 2006 13:09:55 -0700 Message-ID: <44D25813.1030502@trichotomic.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154635829 28445 80.91.229.2 (3 Aug 2006 20:10:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Aug 2006 20:10:29 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 03 22:10:26 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1G8jWJ-0000IN-UT for gctc-ntg-context-518@m.gmane.org; Thu, 03 Aug 2006 22:10:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 794B31FF4F; Thu, 3 Aug 2006 22:10:15 +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 13445-03; Thu, 3 Aug 2006 22:10:09 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 89BE31FF46; Thu, 3 Aug 2006 22:10:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 461A71FF46 for ; Thu, 3 Aug 2006 22:10:06 +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 13198-04-2 for ; Thu, 3 Aug 2006 22:09:58 +0200 (CEST) Original-Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.6]) by ronja.ntg.nl (Postfix) with SMTP id D45B41FF43 for ; Thu, 3 Aug 2006 22:09:56 +0200 (CEST) Original-Received: (qmail 1874 invoked from network); 3 Aug 2006 20:09:54 -0000 Original-Received: from trichotomic.net (HELO [192.168.2.7]) ([64.81.31.27]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 3 Aug 2006 20:09:54 -0000 User-Agent: Thunderbird 1.5.0.5 (Macintosh/20060719) Original-To: mailing list for ConTeXt users X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:29944 Archived-At: Greetings all, I've been experimenting with MetaPost/Fun of late. It is indeed fun. In trying to have a uniform font in both text and MP areas, however, I am running into some difficulty. With a little file like this: --- \setupcolors[state=start] \setuppagenumbering[state=stop] \startMPenvironment [global] \usetypescript[palatino][ec] \switchtobodyfont[palatino,12pt] \stopMPenvironment \starttext The following example should be very interesting: \blank \startuseMPgraphic{very-interesting} z40 = (2cm,0cm) ; z41 = (3cm,0cm) ; z42 = (3cm,1cm) ; z43 = (2cm,1cm) ; z46 = (2.5cm,.5cm) ; path F ; F := (z40--z41--z42--z43--cycle) ; linejoin := mitered ; drawpath F ; label("very", z46) ; \stopuseMPgraphic \useMPgraphic{very-interesting} \stoptext --- everything works very nicely (fonts identical). When I use my own typescript file, however: --- \startMPenvironment [global] \usetypescriptfile[minionpro-diss] \usetypescript[Minion] \switchtobodyfont[Minion,12pt] \stopMPenvironment --- The text appears in the correct font, but the MP section, _while at first showing the correct font_, then changes to CM before my eyes. (my pdf viewer auto-updates). Any clues? Many thanks, David