Bug 701186

Summary: Bounding Box calculations incorrect for ymax in 9.27
Product: Ghostscript Reporter: Paul Wessel <pwessel>
Component: GeneralAssignee: Default assignee <ghostpdl-bugs>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: P4    
Version: 9.27   
Hardware: All   
OS: All   
Customer: Word Size: ---
Attachments: Minimal pure PostScript file of box with title

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