summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2012-11-13 23:37:01 +0100
committerAlbert Astals Cid <aacid@kde.org>2012-11-13 23:37:01 +0100
commitfa813adc3f7b7ee3cc819f1e0cb85e01f13c2c01 (patch)
treee82684b9a4fe8fa350b21e68be01f0c41654e1e7
parent1969bcd693289eba1138fcaa74a684cb3ff2aefc (diff)
Remove < 0 ifs for unsigned
-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;
}