[poppler] poppler/SplashOutputDev.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Sep 23 14:28:56 PDT 2008


 poppler/SplashOutputDev.cc |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 6888b023fdb199d3c5fb705bd928aedf68eeffdb
Author: Albert Astals Cid <aacid at kde.org>
Date:   Tue Sep 23 23:28:04 2008 +0200

    Only do the scale to 'm' size trick on non embedded fonts as it was meant to be
    
    Fixes bug 17744

diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index a76a167..8d4758a 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -1000,6 +1000,7 @@ void SplashOutputDev::doUpdateFont(GfxState *state) {
   int substIdx, n;
   int faceIndex = 0;
   GBool recreateFont = gFalse;
+  GBool doAdjustFontMatrix = gFalse;
 
   needFontUpdate = gFalse;
   font = NULL;
@@ -1054,6 +1055,7 @@ void SplashOutputDev::doUpdateFont(GfxState *state) {
 	faceIndex = dfp->tt.faceIndex;
 	break;
       }
+      doAdjustFontMatrix = gTrue;
     }
 
     fontsrc = new SplashFontSrc;
@@ -1182,7 +1184,7 @@ void SplashOutputDev::doUpdateFont(GfxState *state) {
       // this shouldn't happen
       goto err2;
     }
-    fontFile->doAdjustMatrix = gTrue;
+    fontFile->doAdjustMatrix = doAdjustFontMatrix;
   }
 
   // get the font matrix


More information about the poppler mailing list