summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Freitag <Thomas.Freitag@alfa.de>2012-10-04 00:51:04 +0200
committerAlbert Astals Cid <aacid@kde.org>2012-10-04 00:51:04 +0200
commite044814c0657a6c5b44939a01dcbdc8d83396d43 (patch)
treea94dcf51999978bc5360459ffb1ed3498304e148
parent9451b7a61b6dcaa6c4a76f3efda82f1ebd408654 (diff)
Do not render invalid outlines
Bug #55573
-rw-r--r--splash/SplashFTFont.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/splash/SplashFTFont.cc b/splash/SplashFTFont.cc
index f18b58b4..e57425eb 100644
--- a/splash/SplashFTFont.cc
+++ b/splash/SplashFTFont.cc
@@ -16,6 +16,7 @@
// Copyright (C) 2009 Petr Gajdos <pgajdos@novell.com>
// Copyright (C) 2010 Suzuki Toshiya <mpsuzuki@hiroshima-u.ac.jp>
// Copyright (C) 2011 Andreas Hartmetz <ahartmetz@gmail.com>
+// Copyright (C) 2012 Thomas Freitag <Thomas.Freitag@alfa.de>
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
@@ -428,6 +429,9 @@ SplashPath *SplashFTFont::getGlyphPath(int c) {
if (FT_Get_Glyph(slot, &glyph)) {
return NULL;
}
+ if (FT_Outline_Check(&((FT_OutlineGlyph)glyph)->outline)) {
+ return NULL;
+ }
path.path = new SplashPath();
path.textScale = textScale;
path.needClose = gFalse;