[poppler] splash/SplashFTFont.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Wed Mar 25 14:18:15 PDT 2009
splash/SplashFTFont.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit e4b3f7cbcb6ccdfa8b18d8da5f7074f4140b776a
Author: Albert Astals Cid <aacid at kde.org>
Date: Wed Mar 25 22:16:07 2009 +0100
Fix getGlyphAdvance to behave correctly on font size changes
Fixes bug #20769
diff --git a/splash/SplashFTFont.cc b/splash/SplashFTFont.cc
index aebe295..6ae92bf 100644
--- a/splash/SplashFTFont.cc
+++ b/splash/SplashFTFont.cc
@@ -11,7 +11,7 @@
// All changes made under the Poppler project to this file are licensed
// under GPL version 2 or later
//
-// Copyright (C) 2005, 2007-2008 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2005, 2007-2009 Albert Astals Cid <aacid at kde.org>
// Copyright (C) 2006 Kristian Høgsberg <krh at bitplanet.net>
//
// To see a description of the changes please see the Changelog file that
@@ -273,6 +273,7 @@ double SplashFTFont::getGlyphAdvance(int c)
offset.x = 0;
offset.y = 0;
+ ff->face->size = sizeObj;
FT_Set_Transform(ff->face, &identityMatrix, &offset);
if (ff->codeToGID && c < ff->codeToGIDLen) {
More information about the poppler
mailing list