[poppler] TTC support
Albert Astals Cid
tsdgeos at yahoo.es
Fri Apr 1 09:02:24 PST 2005
Patch i got for kpdf from Takashi Iwai <tiwai AT suse DOT de> adapted to
poppler
TTC is TrueType font Collection, that is more than a TTF in the same file,
this adds support to specifying them in the /etc/xpdfrc file adding a number
at the end of the displayFontTT line, the cool thing is that it can be easily
adapted to the fontconfig patch i sent changing
if (!strncasecmp(ext,".ttf",4)) {
dfp = new DisplayFontParam(fontName->copy(), displayFontTT);
dfp->tt.fileName = new GooString((char*)s);
}
to
if (!strncasecmp(ext,".ttf",4) || !strncasecmp(ext,".ttc",4)) {
dfp = new DisplayFontParam(fontName->copy(), displayFontTT);
dfp->tt.fileName = new GString((char*)s);
FcPatternGetInteger(m, FC_INDEX, 0, &(dfp->tt.faceIndex));
}
Some CJK fonts come in ttc format
Albert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ttc.patch
Type: text/x-diff
Size: 13652 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20050401/ba7e51c2/ttc.bin
More information about the poppler
mailing list