* metapost behaving different
@ 2008-10-16 10:57 Hans van der Meer
2008-10-16 12:01 ` Taco Hoekwater
0 siblings, 1 reply; 2+ messages in thread
From: Hans van der Meer @ 2008-10-16 10:57 UTC (permalink / raw)
To: NTG ConTeXt
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: metapost behaving different
2008-10-16 10:57 metapost behaving different Hans van der Meer
@ 2008-10-16 12:01 ` Taco Hoekwater
0 siblings, 0 replies; 2+ messages in thread
From: Taco Hoekwater @ 2008-10-16 12:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Hans,
Hans van der Meer wrote:
>
> 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?
Can you please post a small complete example?
Best wishes,
Taco
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-16 12:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-16 10:57 metapost behaving different Hans van der Meer
2008-10-16 12:01 ` Taco Hoekwater
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).