ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Wooten <dw@trichotomic.net>
Subject: \startMPenvironment : personal font weirdness
Date: Thu, 03 Aug 2006 13:09:55 -0700	[thread overview]
Message-ID: <44D25813.1030502@trichotomic.net> (raw)

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

             reply	other threads:[~2006-08-03 20:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-03 20:09 David Wooten [this message]
2006-08-03 22:56 ` Hans Hagen
2006-08-03 23:07   ` David Wooten
2006-08-03 23:13     ` Hans Hagen
2006-08-03 23:30       ` David Wooten
2006-08-04  8:46         ` Mojca Miklavec
2006-08-04 11:24           ` Hans van der Meer
2006-08-04 12:13           ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44D25813.1030502@trichotomic.net \
    --to=dw@trichotomic.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).