From f07293c26a1ff09ad0cad74db7949981139fb4bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Wobst?= Date: Mon, 24 Apr 2006 10:11:34 +0000 Subject: [PATCH] use bboxes as calculated by tex instead of the real bboxes from the fonts/glyphs (this restores the old behaviour ... however, we can later on discuss other solutions as well) git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@2606 069f4177-920e-0410-937b-c2a4a81bcd90 --- pyx/text.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pyx/text.py b/pyx/text.py index 4441c8c0..5c9f88de 100644 --- a/pyx/text.py +++ b/pyx/text.py @@ -24,6 +24,7 @@ import glob, os, threading, Queue, re, tempfile, atexit, time, warnings import config, siteconfig, unit, box, canvas, trafo, version, attr, style, dvifile +import bbox as bboxmodule ############################################################################### # texmessages @@ -695,11 +696,15 @@ class textbox(box.rect, canvas._canvas): def processPS(self, file, writer, context, registry, bbox): self.ensuredvicanvas() - canvas._canvas.processPS(self, file, writer, context, registry, bbox) + abbox = bboxmodule.empty() + canvas._canvas.processPS(self, file, writer, context, registry, abbox) + bbox += box.rect.bbox(self) def processPDF(self, file, writer, context, registry, bbox): self.ensuredvicanvas() - canvas._canvas.processPDF(self, file, writer, context, registry, bbox) + abbox = bboxmodule.empty() + canvas._canvas.processPDF(self, file, writer, context, registry, abbox) + bbox += box.rect.bbox(self) def _cleantmp(texrunner): -- 2.11.4.GIT