ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: \startMPenvironment : personal font weirdness
Date: Fri, 04 Aug 2006 00:56:11 +0200	[thread overview]
Message-ID: <44D27F0B.8070606@wxs.nl> (raw)
In-Reply-To: <44D25813.1030502@trichotomic.net>

David Wooten wrote:
> 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
>   
dangerous to use such a upper/lowercase mix (typos)
> ---
>
> 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).
>   
hm, looks like a bronwser problem 

what happens if you only include the graphic, 

\startMPpage 
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) ;
\stopMPpage 

so, no other text 

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

  reply	other threads:[~2006-08-03 22:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-03 20:09 David Wooten
2006-08-03 22:56 ` Hans Hagen [this message]
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=44D27F0B.8070606@wxs.nl \
    --to=pragma@wxs.nl \
    --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).