diff --git a/splash/SplashFTFont.cc b/splash/SplashFTFont.cc index f18b58b..a9089d6 100644 --- a/splash/SplashFTFont.cc +++ b/splash/SplashFTFont.cc @@ -428,6 +428,8 @@ SplashPath *SplashFTFont::getGlyphPath(int c) { if (FT_Get_Glyph(slot, &glyph)) { return NULL; } + if (FT_Outline_Check(&((FT_OutlineGlyph)glyph)->outline) == FT_Err_Invalid_Argument) + return NULL; path.path = new SplashPath(); path.textScale = textScale; path.needClose = gFalse;