Recently I have come across many fonts embedded within PDF files which cannot be loaded by FreeType v2.4.10.
I suspect Enfocus PitStop is mangling the fonts when the PDF file is 'optimized'. Attached is the font file (extracted from a PDF) and test case. Adobe Acrobat and Photoshop are able to load the fonts. FontForge can also open the font, and after 'Exporting to OpenType' the test case is able to load the font successfully. I am still trying to debug the problem, but my knowledge of FreeType and font format internals is being stretched. Any insight would be appreciated. Regards, - Harry
IPJYIP+PFDinTextPro-Medium.otf
Description: application/vnd.oasis.opendocument.formula-template
#include <ft2build.h>
#include FT_FREETYPE_H
#include <stdlib.h>
#include <stdio.h>
int main( int argc, char **argv ) {
FT_Library library;
FT_Face face;
int error;
error = FT_Init_FreeType(&library);
if( error ) {
fprintf(stderr, "FT_Init_FreeType error\n");
exit(1);
}
error = FT_New_Face(library, "IPJYIP+PFDinTextPro-Medium.otf", 0, &face);
if( error == FT_Err_Unknown_File_Format ) {
fprintf(stderr, "FT_New_Face = Unknown File Format!\n");
exit(2);
}
else if( error ) {
fprintf(stderr, "FT_New_Face = %d\n", error);
exit(2);
}
exit(0);
}
_______________________________________________ Freetype-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/freetype-devel
