Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/splash/SplashFTFontEngine.cc
diff options
context:
space:
mode:
Diffstat (limited to 'pdf/splash/SplashFTFontEngine.cc')
-rw-r--r--pdf/splash/SplashFTFontEngine.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/pdf/splash/SplashFTFontEngine.cc b/pdf/splash/SplashFTFontEngine.cc
index 64dbc75..7401459 100644
--- a/pdf/splash/SplashFTFontEngine.cc
+++ b/pdf/splash/SplashFTFontEngine.cc
@@ -81,6 +81,7 @@ SplashFontFile *SplashFTFontEngine::loadCIDFont(SplashFontFileID *idA,
SplashFontFile *ret;
// check for a CFF font
+#if HAVE_FREETYPE_217_OR_OLDER
if ((ff = FoFiType1C::load(fileName))) {
cidToGIDMap = ff->getCIDToGIDMap(&nCIDs);
delete ff;
@@ -88,6 +89,12 @@ SplashFontFile *SplashFTFontEngine::loadCIDFont(SplashFontFileID *idA,
cidToGIDMap = NULL;
nCIDs = 0;
}
+#else
+ // No need to check for CFF Font, freetype treats all CID fonts the same way
+ cidToGIDMap = NULL;
+ nCIDs = 0;
+#endif
+
ret = SplashFTFontFile::loadCIDFont(this, idA, fileName, deleteFile,
cidToGIDMap, nCIDs);
if (!ret) {