[jira] [Created] (FOP-2751) Acrobat Reader error with some Latin Fonts

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Created] (FOP-2751) Acrobat Reader error with some Latin Fonts

JIRA jira@apache.org
Kazuyuki Murakami created FOP-2751:

             Summary: Acrobat Reader error with some Latin Fonts
                 Key: FOP-2751
                 URL: https://issues.apache.org/jira/browse/FOP-2751
             Project: FOP
          Issue Type: Bug
          Components: font/opentype
    Affects Versions: trunk
         Environment: Operating Systems: Windows
JDK: 1.8
            Reporter: Kazuyuki Murakami
         Attachments: FuturaStd-Book.fo, FuturaStd-Book.otf, FuturaStd-Book.pdf, FuturaStd-Book_full.pdf, GillSansStd.fo, GillSansStd.otf, GillSansStd.pdf, GillSansStd_Acrobat.png, GillSansStd_full.pdf, TimesNewRomanMTStd-Bold.fo, TimesNewRomanMTStd-Bold.otf, TimesNewRomanMTStd-Bold.pdf, TimesNewRomanMTStd-Bold_Acrobat.png, TimesNewRomanMTStd-Bold_full.pdf, fop.xconf

Some Japanese Fonts cannot be embedded into PDF document.
How to repeat
1. Get FOP from trunk@1811797
2. Get Font from the attachment
3. Use my config file and generate the PDF, there is no error reported.
4. Open the PDF file in Acro-Reader, it will report the "cannot extract the embedded font" error.

[hidden email]
java.io.IOException: illegal offset value 2949166 in CFF font
        at org.apache.fontbox.cff.CFFParser.readIndexDataOffsets(CFFParser.java:188)
        at org.apache.fontbox.cff.CFFParser.readIndexData(CFFParser.java:197)
        at org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:460)
        at org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:145)

GillSansStd.fo and TimesNewRomanMTStd-Bold.fo detects no Error in CFFParser.
I attached the result of checking the CFF structure in Acrobat.

This message was sent by Atlassian JIRA