Bug 701186 - Bounding Box calculations incorrect for ymax in 9.27
Summary: Bounding Box calculations incorrect for ymax in 9.27
Status: RESOLVED DUPLICATE of bug 700952
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: General (show other bugs)
Version: 9.27
Hardware: All All
: P4 major
Assignee: Default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-11 18:59 UTC by Paul Wessel
Modified: 2019-06-12 07:15 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
Minimal pure PostScript file of box with title (1.00 KB, application/postscript)
2019-06-11 18:59 UTC, Paul Wessel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Wessel 2019-06-11 18:59:02 UTC
Created attachment 17662 [details]
Minimal pure PostScript file of box with title

Version gs 9.27 appears to have introduced a new BoundingBox error. The minimal PostScript file bug.ps (attached) draws a box with a title.  DEVICE=bbox yields a bounding box that clips most of the title.

In 9.26 we get this correct result:
gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=bbox bug.ps
%%BoundingBox: 71 71 361 385
%%HiResBoundingBox: 71.278803 71.278803 360.721184 384.173988

In 9.27 we instead get this result:
gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=bbox bug.ps
%%BoundingBox: 71 71 361 377
%%HiResBoundingBox: 71.278803 71.278803 360.721184 376.541989

As you can see, the ymax value is too small and clipping of the title occurs.
Comment 1 Ken Sharp 2019-06-12 07:15:34 UTC

*** This bug has been marked as a duplicate of bug 700952 ***