PDFBox
  1. PDFBox
  2. PDFBOX-1349

Postscript tables of truetype fonts are not correctly parsed.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.7.1
    • Component/s: FontBox
    • Labels:
      None
    • Environment:
      all

      Description

      The specification of the 'post' table contains a list of 258 predefined character names.

      However, the current fontbox interprets name indices <258 in terms of MacRomanEncoding, which is wrong.

      Testcase and patch will be attached shortly.

      1. pdfbox-1.7.0-ttf-post-table-fix.patch
        6 kB
        Wolfgang Glas
      2. TestTTFParser.java
        3 kB
        Wolfgang Glas

        Issue Links

          Activity

          Hide
          Andreas Lehmkühler added a comment -

          I added the patch in revision 1358739 and 1358740 as proposed with some slight modifications. I set both classes in org.apache.fontbox.encoding to deprecated as they are no longer needed.

          Thanks for the contribution!

          Show
          Andreas Lehmkühler added a comment - I added the patch in revision 1358739 and 1358740 as proposed with some slight modifications. I set both classes in org.apache.fontbox.encoding to deprecated as they are no longer needed. Thanks for the contribution!
          Hide
          Wolfgang Glas added a comment -

          A test case, which unfortunately has to live in the pdfbox project.

          Show
          Wolfgang Glas added a comment - A test case, which unfortunately has to live in the pdfbox project.
          Hide
          Wolfgang Glas added a comment -

          Patch, which fixes post table parsing.

          Show
          Wolfgang Glas added a comment - Patch, which fixes post table parsing.

            People

            • Assignee:
              Andreas Lehmkühler
              Reporter:
              Wolfgang Glas
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development