Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4038

CFF font Blue values and other delta encoded lists read incorrectly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.8
    • Fix Version/s: 2.0.9, 3.0.0 PDFBox
    • Component/s: FontBox
    • Labels:
      None

      Description

      The attached test compares the values retrieved via CFFParser from an OpenType font with the expected values as seen in FontForge (go to Element->Font Info->PS Private).

      The font NeoSans Black.otf can be found at https://www.wfonts.com/font/neosans

      The CFF font specification explaining the encoding of the entries which are incorrectly parsed by FontBox CFFParser can be found here https://typekit.files.wordpress.com/2013/05/5176.cff.pdf

      We use FontBox to read the font when we need to embed it into an PDF which we produce via our Apache FOP based software. Adobe validator complains about incorrect "Blue values" sorting then.

        Attachments

        1. CFFParser.java.patch
          3 kB
          Petr Slaby
        2. BlueValuesTest.java
          3 kB
          Petr Slaby

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              pslabycz Petr Slaby
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: