Doesn't poppler recognize OpenType Font as Font file?
Hi,
I was told that poppler does not recognize font files if those
are not postfixed ttf, ttc, pfa and pfb. So, how about OTF file?
poppler-0.8.7/poppler/GlobalParams.cc:1078
GlobalParams::getDisplayFont()
res = FcPatternGetString(set->fonts[i], FC_FILE, 0, &s);
if (res != FcResultMatch || !s)
continue;
ext = strrchr((char*)s,'.');
if (!ext)
continue;
if (!strncasecmp(ext,".ttf",4) || !strncasecmp(ext, ".ttc", 4))
{
dfp = new DisplayFontParam(fontName->copy(), displayFontTT);
dfp->tt.fileName = new GooString((char*)s);
FcPatternGetInteger(set->fonts[i], FC_INDEX, 0, &(dfp->tt.faceIndex));
}
else if (!strncasecmp(ext,".pfa",4) || !strncasecmp(ext,".pfb",4))
{
dfp = new DisplayFontParam(fontName->copy(), displayFontT1);
dfp->t1.fileName = new GooString((char*)s);
}
else
continue;
--
Regards,
Hideki Yamane henrich @ debian.or.jp/iijmio-mail.jp
http://wiki.debian.org/HidekiYamane
Reply to: