summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Savochenko <rom_as@oscada.org>2023-04-03 17:43:00 +0200
committerSlávek Banko <slavek.banko@axis.cz>2023-04-04 15:07:55 +0200
commita9f6e5c5b26c07d5e96cd5e84e1dd95c973cd3ab (patch)
treedb8b4d528767926f2b49b7734dbb75e7c1466855
parent69768c94ed8cacedd6b83bce3125ab72394497cc (diff)
downloadtdegraphics-a9f6e5c5.tar.gz
tdegraphics-a9f6e5c5.zip
KPDF: Fix that KPDF does not show some fonts.r14.1.0
This resolves issue #48 and bug 3204. Signed-off-by: Roman Savochenko <rom_as@oscada.org>
-rw-r--r--kpdf/xpdf/xpdf/GlobalParams.cpp2
1 files changed, 1 insertions, 1 deletions
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));