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. TestTTFParser.java
        3 kB
        Wolfgang Glas
      2. pdfbox-1.7.0-ttf-post-table-fix.patch
        6 kB
        Wolfgang Glas

        Issue Links

          Activity

          Wolfgang Glas created issue -
          Wolfgang Glas made changes -
          Field Original Value New Value
          Attachment pdfbox-1.7.0-ttf-post-table-fix.patch [ 12533956 ]
          Wolfgang Glas made changes -
          Attachment TestTTFParser.java [ 12533957 ]
          Andreas Lehmkühler made changes -
          Assignee Andreas Lehmkühler [ lehmi ]
          Wolfgang Glas made changes -
          Summary Postscript table of truetype fonts are not correctly parsed. Postscript tables of truetype fonts are not correctly parsed.
          Description The specification of the 'post' table contains a list of 158 predefined character names.

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

          Testcase and patch will be attached shortly.
          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.
          Andreas Lehmkühler made changes -
          Link This issue relates to PDFBOX-1355 [ PDFBOX-1355 ]
          Andreas Lehmkühler made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Andreas Lehmkühler made changes -
          Fix Version/s 1.7.1 [ 12322469 ]
          Fix Version/s 1.8.0 [ 12321650 ]
          Andreas Lehmkühler made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            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