From: Joerg L. <jo...@us...> - 2009-10-18 11:56:27
|
Hi, On 17.10.09, Alan G Isaac wrote: > On 10/17/2009 9:26 AM, Michael SCHINDLER wrote: > > The problem is that > > the true bounding box of a picture does depend on both the paths and > > the respective linewidth. It is simple to calculate bounding boxes for > > lines; for curves it is more difficult. PyX calculates these two. > > Including also the linewidth and stroke effects coming from the > > different linejoin parameters is really difficult. We decided not to > > do this, as it would lead to a reimplementation of ghostscript. > > Did you consider using Bless's bbox code (comes with ps2eps, GPL license)? I guess, you mean this code: http://www.tex.ac.uk/tex-archive/support/ps2eps/src/C/bbox.c Unfortunately, it requires having a rasterized version of the graphics output. > It would be really nice to get a better bounding box. From a perfectionists point of view, I would agree. Practically, however, it only very seldomnly happened that the bounding box produced by PyX was not good enough. Best, Jörg |