summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--splash/SplashFTFont.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/splash/SplashFTFont.cc b/splash/SplashFTFont.cc
index e57425eb..2a236252 100644
--- a/splash/SplashFTFont.cc
+++ b/splash/SplashFTFont.cc
@@ -370,10 +370,6 @@ double SplashFTFont::getGlyphAdvance(int c)
} else {
gid = (FT_UInt)c;
}
- if (ff->trueType && gid < 0) {
- // skip the TrueType notdef glyph
- return -1;
- }
if (FT_Load_Glyph(ff->face, gid, getFTLoadFlags(ff->type1, ff->trueType, aa, enableFreeTypeHinting, enableSlightHinting))) {
return -1;
@@ -419,10 +415,6 @@ SplashPath *SplashFTFont::getGlyphPath(int c) {
} else {
gid = (FT_UInt)c;
}
- if (ff->trueType && gid < 0) {
- // skip the TrueType notdef glyph
- return NULL;
- }
if (FT_Load_Glyph(ff->face, gid, getFTLoadFlags(ff->type1, ff->trueType, aa, enableFreeTypeHinting, enableSlightHinting))) {
return NULL;
}