KPDF: Fix that KPDF does not show some fonts.

This resolves issue #48 and bug 3204.

Signed-off-by: Roman Savochenko <rom_as@oscada.org>
pull/57/head r14.1.0
Roman Savochenko 1 year ago committed by Slávek Banko
parent 69768c94ed
commit a9f6e5c5b2
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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));

Loading…
Cancel
Save