diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc index 114c797..7713ce2 100644 --- a/poppler/GfxFont.cc +++ b/poppler/GfxFont.cc @@ -448,14 +448,13 @@ CharCodeToUnicode *GfxFont::readToUnicodeCMap(Dict *fontDict, int nBits, } void GfxFont::findExtFontFile() { static char *type1Exts[] = { ".pfa", ".pfb", ".ps", "", NULL }; - static char *ttExts[] = { ".ttf", ".ttc", NULL }; + static char *ttExts[] = { ".ttf", ".ttc", ".otf", NULL}; if (name) { if (type == fontType1) { extFontFile = globalParams->findFontFile(name, type1Exts); } else if (type == fontTrueType) { extFontFile = globalParams->findFontFile(name, ttExts); } } } diff --git a/poppler/GlobalParams.cc b/poppler/GlobalParams.cc index 2e11bb0..1e0ddc0 100644 --- a/poppler/GlobalParams.cc +++ b/poppler/GlobalParams.cc @@ -1247,7 +1247,7 @@ DisplayFontParam *GlobalParams::getDisplayFont(GfxFont *font) { ext = strrchr((char*)s,'.'); if (!ext) continue; - if (!strncasecmp(ext,".ttf",4) || !strncasecmp(ext, ".ttc", 4)) + if (!strncasecmp(ext,".ttf",4) || !strncasecmp(ext, ".ttc", 4) || !strncasecmp(ext, ".otf", 4)) { dfp = new DisplayFontParam(fontName->copy(), displayFontTT); dfp->tt.fileName = new GooString((char*)s);