pdftoppm and subsetted OpenType True type font won't display correctly
I use Adobe afdko (https://github.com/adobe-type-tools/afdko) to subset an OTF font and embed it into a pdf file. Adobe Reader and MuPDF display the resulting PDF correct. Poppler has problems.
When this pdf file is rendered with pdftoppm, the text with this font is not shown.
I resolved this problem by changing lines 224-228 from SplashFTFont.cc to
if (ff->codeToGID && c < ff->codeToGIDLen && c >= 0) {
gid = (FT_UInt)ff->codeToGID[c];
} else {
//gid = (FT_UInt)c;
gid = FT_Get_Char_Index(ff->face, c);
}
Apparently poppler cannot handle subsetted fonts here very well, because it will use gid's which are too large for subsetted fonts.
Please could someone put these changes into the repo?
thanks and regards/..