Alan G Isaac venit, vidit, dixit 09.09.2008 06:36: > If I include an EPS file at 0,0 on a canvas and do nothing else, > I get an extra (and unwanted) 1px increase in the bounding box > when I write an EPS file. > > I assume this is a bug?
OK, I guess reading the source first would have been easier than doing my experiments ;) - PyX uses the bounding box, not the highres bounding box of included eps files. - The constructor for document.page, which is called implicitly by writeEPSfile, has a parameter bboxenlarge which defaults to 1 true point. I used to know this :| So, using bboxenlarge=0 when writing out the eps to be included makes sure the bbox is as tight as possible (disproving my theory from the previous post). Using bboxenlarge=0 when writing out the final file makes sure the final eps has the same bbox as the included one. The bbox may still differ up to 1 pt (not including 1) in each coordinate from the one you expect because the HR bbox is not read from the eps file. Expect an upcoming patch for that ;) I'm not sure about the rationale behind doing the enlargement (I hope this doesn't trigger to many spam filters ;) ). Maybe better safe than sorry? Michael ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
