diff options
author | Roman Savochenko <rom_as@oscada.org> | 2023-04-03 17:43:00 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2023-04-04 15:07:55 +0200 |
commit | a9f6e5c5b26c07d5e96cd5e84e1dd95c973cd3ab (patch) | |
tree | db8b4d528767926f2b49b7734dbb75e7c1466855 /kpdf/xpdf | |
parent | 69768c94ed8cacedd6b83bce3125ab72394497cc (diff) | |
download | tdegraphics-a9f6e5c5b26c07d5e96cd5e84e1dd95c973cd3ab.tar.gz tdegraphics-a9f6e5c5b26c07d5e96cd5e84e1dd95c973cd3ab.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>
Diffstat (limited to 'kpdf/xpdf')
-rw-r--r-- | kpdf/xpdf/xpdf/GlobalParams.cpp | 2 |
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)); |