From a9f6e5c5b26c07d5e96cd5e84e1dd95c973cd3ab Mon Sep 17 00:00:00 2001 From: Roman Savochenko Date: Mon, 3 Apr 2023 17:43:00 +0200 Subject: KPDF: Fix that KPDF does not show some fonts. This resolves issue #48 and bug 3204. Signed-off-by: Roman Savochenko --- kpdf/xpdf/xpdf/GlobalParams.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kpdf') diff --git a/kpdf/xpdf/xpdf/GlobalParams.cpp b/kpdf/xpdf/xpdf/GlobalParams.cpp index 69ce333f..d98a0ce5 100644 --- a/kpdf/xpdf/xpdf/GlobalParams.cpp +++ b/kpdf/xpdf/xpdf/GlobalParams.cpp @@ -2091,7 +2091,7 @@ DisplayFontParam *GlobalParams::getDisplayFont(GString *fontName) { if (res != FcResultMatch || !s) goto fin; ext = rindex((char*)s,'.'); if (!ext) goto fin; - 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 GString((char*)s); FcPatternGetInteger(m, FC_INDEX, 0, &(dfp->tt.faceIndex)); -- cgit v1.2.1