Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2751

Acrobat Reader error with some Latin Fonts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5
    • 2.3
    • font/opentype
    • None
    • Operating Systems: Windows
      JDK: 1.8

    Description

      Some Latin 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.

      CFFParser@FuturaStd-Book.fo

      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.
      GillSansStd_Acrobat.png
      TimesNewRomanMTStd-Bold_Acrobat.png

      Attachments

        1. fop.xconf
          0.8 kB
          Kazuyuki Murakami
        2. FuturaStd-Book_full.pdf
          29 kB
          Kazuyuki Murakami
        3. FuturaStd-Book.fo
          0.9 kB
          Kazuyuki Murakami
        4. FuturaStd-Book.pdf
          22 kB
          Kazuyuki Murakami
        5. GillSansStd_Acrobat.png
          45 kB
          Kazuyuki Murakami
        6. GillSansStd_full.pdf
          30 kB
          Kazuyuki Murakami
        7. GillSansStd.fo
          0.9 kB
          Kazuyuki Murakami
        8. GillSansStd.pdf
          23 kB
          Kazuyuki Murakami
        9. TimesNewRomanMTStd-Bold_Acrobat.png
          45 kB
          Kazuyuki Murakami
        10. TimesNewRomanMTStd-Bold_full.pdf
          34 kB
          Kazuyuki Murakami
        11. TimesNewRomanMTStd-Bold.fo
          1.0 kB
          Kazuyuki Murakami
        12. TimesNewRomanMTStd-Bold.pdf
          26 kB
          Kazuyuki Murakami

        Issue Links

          Activity

            People

              ssteiner Simon Steiner
              murakami@brainsellers.com Kazuyuki Murakami
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: