[PATCH] Use the font BBox, not the font matrix to set the Gfx BBox

Adrian Johnson ajohnson at redneon.com
Sat Nov 1 03:19:04 PDT 2008


---
 poppler/CairoFontEngine.cc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/poppler/CairoFontEngine.cc b/poppler/CairoFontEngine.cc
index 6910196..a18f566 100644
--- a/poppler/CairoFontEngine.cc
+++ b/poppler/CairoFontEngine.cc
@@ -602,6 +602,7 @@ _render_type3_glyph (cairo_scaled_font_t  *scaled_font,
   output_dev = new CairoOutputDev();
   output_dev->setCairo(cr);
 
+  mat = font->getFontBBox();
   box.x1 = mat[0];
   box.y1 = mat[1];
   box.x2 = mat[2];
-- 
1.5.6.3


--------------030001040407080907060508
Content-Type: text/x-patch;
 name="0003-Transform-the-glyph-advance-by-the-font-matrix.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename*0="0003-Transform-the-glyph-advance-by-the-font-matrix.patch"



More information about the poppler mailing list