* beta: figure boundingbox
@ 2009-05-13 14:03 Peter Rolf
2009-05-14 13:02 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Peter Rolf @ 2009-05-13 14:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 389 bytes --]
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
[-- Attachment #2: bb.tex --]
[-- Type: text/plain, Size: 184 bytes --]
\pdfcompresslevel0
\setuppagenumber[state=stop]
\startuniqueMPgraphic{foo}
fill unitsquare xyscaled(2in,1in);
\stopuniqueMPgraphic
\starttext
\null
\useMPgraphic{foo}
\stoptext
[-- Attachment #3: bb_mkii.pdf --]
[-- Type: application/pdf, Size: 1595 bytes --]
[-- Attachment #4: bb_mkiv.pdf --]
[-- Type: application/pdf, Size: 1803 bytes --]
[-- Attachment #5: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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] 4+ messages in thread
* Re: beta: figure boundingbox
2009-05-13 14:03 beta: figure boundingbox Peter Rolf
@ 2009-05-14 13:02 ` Hans Hagen
2009-05-14 13:45 ` Peter Rolf
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2009-05-14 13:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 4+ messages in thread
* Re: beta: figure boundingbox
2009-05-14 13:02 ` Hans Hagen
@ 2009-05-14 13:45 ` Peter Rolf
2009-05-14 14:09 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Peter Rolf @ 2009-05-14 13:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
> ___________________________________________________________________________________
>
>
___________________________________________________________________________________
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] 4+ messages in thread
* Re: beta: figure boundingbox
2009-05-14 13:45 ` Peter Rolf
@ 2009-05-14 14:09 ` Hans Hagen
0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2009-05-14 14:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 4+ messages in thread
end of thread, other threads:[~2009-05-14 14:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-13 14:03 beta: figure boundingbox Peter Rolf
2009-05-14 13:02 ` Hans Hagen
2009-05-14 13:45 ` Peter Rolf
2009-05-14 14:09 ` 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).