Hi, while comparing the PDF of mkii and mkiv I noticed a slight differ in the boundingboxes (bb) of MP figures. While all mkii bb have the form [0 0 w h], the mkiv counterparts use [-1 -1 w+1 h+1]. So the bb of mkiv is enlarged 1bp in all directions. Is this intended? Minimal example and PDF attached. (ConTeXt 2009-04-06; luatex0.37; pdftex1.40.9; mpost1.102) Best wishes, Peter \pdfcompresslevel0 \setuppagenumber[state=stop] \startuniqueMPgraphic{foo} fill unitsquare xyscaled(2in,1in); \stopuniqueMPgraphic \starttext \null \useMPgraphic{foo} \stoptext
Peter Rolf wrote:
Hi,
while comparing the PDF of mkii and mkiv I noticed a slight differ in the boundingboxes (bb) of MP figures. While all mkii bb have the form [0 0 w h], the mkiv counterparts use [-1 -1 w+1 h+1]. So the bb of mkiv is enlarged 1bp in all directions. Is this intended?
harmless ... it prevents clipping of lines \setbox0\hbox{\useMPgraphic{foo}} \the\wd0 \the\dimexpr2in\relax \box0 the real dimensions and positioning is ok ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Hans Hagen schrieb:
Peter Rolf wrote:
Hi,
while comparing the PDF of mkii and mkiv I noticed a slight differ in the boundingboxes (bb) of MP figures. While all mkii bb have the form [0 0 w h], the mkiv counterparts use [-1 -1 w+1 h+1]. So the bb of mkiv is enlarged 1bp in all directions. Is this intended?
harmless ... it prevents clipping of lines mh, you mean if something is \framed (with default frame settings)?
\setbox0\hbox{\useMPgraphic{foo}} \the\wd0 \the\dimexpr2in\relax \box0
the real dimensions and positioning is ok
i haven't seen any problems here so far and my default unit (px) is smaller than one bp. i was just wondering.... :) thx for the info.
----------------------------------------------------------------- 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 ----------------------------------------------------------------- ___________________________________________________________________________________
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 ___________________________________________________________________________________
Peter Rolf wrote:
Hans Hagen schrieb:
Peter Rolf wrote:
Hi,
while comparing the PDF of mkii and mkiv I noticed a slight differ in the boundingboxes (bb) of MP figures. While all mkii bb have the form [0 0 w h], the mkiv counterparts use [-1 -1 w+1 h+1]. So the bb of mkiv is enlarged 1bp in all directions. Is this intended?
harmless ... it prevents clipping of lines mh, you mean if something is \framed (with default frame settings)?
if the bbox goes through the middle of a line in an xform then you get (in acrobat) clipped lines so this avoids that problem ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Peter Rolf