just in case this helps anyone debug, I noticed that the bounding box
calculation is affected by the color value; if I draw lines with a white
component, e.g. by '0.5 setgray' they get considered by the bounding box
algorithm, whereas completely black lines don't make it...

%!PS-Adobe-2.0
%%Creator: foo
%%BoundingBox: 197 398 367 602
%%DocumentMedia: A4 595 842 0 () ()
%%EndComments
/mainfont /Courier findfont 14 scalefont def
mainfont setfont
%%EndProlog
%%Page: 1 1
0.0 setgray
250 450 moveto
(Hello, World!) show
200 400 moveto
50 100 rlineto
0 -100 rmoveto
-50 100 rlineto
3.5 setlinewidth
stroke
0.5 setgray
260 550 moveto
(Hello, World!) show
210 500 moveto
50 100 rlineto
0 -100 rmoveto
-50 100 rlineto
3.5 setlinewidth
stroke
showpage
%%Pages: 1

-- 
ghostscript's bbox driver gives wrong result
https://bugs.launchpad.net/bugs/160203
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to