ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \startMPenvironment : personal font weirdness
@ 2006-08-03 20:09 David Wooten
  2006-08-03 22:56 ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: David Wooten @ 2006-08-03 20:09 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-08-04 12:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-03 20:09 \startMPenvironment : personal font weirdness David Wooten
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

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).