ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans van der Meer <H.vanderMeer@uva.nl>
To: NTG ConTeXt <ntg-context@ntg.nl>
Subject: metapost behaving different
Date: Thu, 16 Oct 2008 12:57:28 +0200	[thread overview]
Message-ID: <C76E77EC-8AE5-4230-9CFB-50F48458FC27@uva.nl> (raw)

Drawing with a square pen gives better rectangles
My metapost code is something like:
    pickup square pen
    draw rectangle with label within (macro call)

label drawing within the rectangle is essentially done with
    % prevent wobbling of text boxes with uneven depth
    pic := textext("\setbox0=\hbox{"&labeltext&"}\dp0=0pt\box0"); %  
pic goes into rectangle

Under mkii this worked but under mkiv the text is mangled. To restore  
proper text I had to surround this with pen commands:
    pentemp := savepen; pickup pencircle scaled 0pt; % apparently any  
size will do
    % prevent wobbling of text boxes with uneven depth
    pic := textext("\setbox0=\hbox{"&labeltext&"}\dp0=0pt\box0"); %  
pic goes into rectangle
    pickup pentemp;	

Why is mkii behaving differently and not affected by pen changes?
Is this to be expected from metapost (and thus to be considered normal  
behaviour) or did a bug creep in?

Using luatex 0.30.1 and 2008.08.05 18:47 MKIV.

[By the way, sometxt doesn't work here and I have to stick with  
textext.]

Hans van der Meer




___________________________________________________________________________________
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
___________________________________________________________________________________


             reply	other threads:[~2008-10-16 10:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-16 10:57 Hans van der Meer [this message]
2008-10-16 12:01 ` Taco Hoekwater

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=C76E77EC-8AE5-4230-9CFB-50F48458FC27@uva.nl \
    --to=h.vandermeer@uva.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).