splash/SplashFTFont.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 347a6e955f6ba403451e09cfe03c79cf7bcc66c8 Author: Albert Astals Cid <[email protected]> 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 <[email protected]> +// Copyright (C) 2005, 2007-2009 Albert Astals Cid <[email protected]> // Copyright (C) 2006 Kristian Høgsberg <[email protected]> // // 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) {
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
