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

Acrobat Reader error with Morisawa Fonts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5
    • 2.3
    • font/opentype
    • None
    • Operating Systems: Windows
      JDK: 1.8
      OpenFont: Morisawa ShinGo Pro R

    Description

      The Morisawa ShinGo Pro R font cannot be embedded into PDF document.

      How to repeat
      1. Get FOP from trunk@1786161
      2. Get Font from https://github.com/skyavy-cebu/DoubleClick/blob/master/web/fonts/A-OTF-ShinGoPro-Regular.otf?raw=true
      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.

      Notes:
      I can display normally with full embedding.
      (Please refer to test.fo, test_subset.pdf, test_full.pdf)
      When examining the subset font with CFFParser, the following Exception occurred.

      java.io.EOFException
      at org.apache.fontbox.cff.DataInput.readUnsignedShort(DataInput.java:151)
      at org.apache.fontbox.cff.CFFDataInput.readCard16(CFFDataInput.java:55)
      at org.apache.fontbox.cff.CFFParser.readIndexDataOffsets(CFFParser.java:172)
      at org.apache.fontbox.cff.CFFParser.readIndexData(CFFParser.java:193)
      at org.apache.fontbox.cff.CFFParser.parseCIDFontDicts(CFFParser.java:590)
      at org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:503)
      at org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:141)

      Attachments

        1. fop.xconf
          0.4 kB
          Kazuyuki Murakami
        2. fop2.xconf
          0.4 kB
          Kazuyuki Murakami
        3. test_full.pdf
          2.71 MB
          Kazuyuki Murakami
        4. test_subset.pdf
          7 kB
          Kazuyuki Murakami
        5. test.fo
          0.5 kB
          Kazuyuki Murakami
        6. test2_full.pdf
          8.02 MB
          Kazuyuki Murakami
        7. test2.fo
          46 kB
          Kazuyuki Murakami
        8. test2.pdf
          6.32 MB
          Kazuyuki Murakami
        9. workaround.patch
          1 kB
          chunlinyao

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: