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

Incomplete widths array for CID-fonts

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: PDModel
    • Labels:
      None

      Description

      In my day job I've migrated a project to PDFBox 2.0.0 and found an issue with CID-fonts. The created width array is incomplete in some non deterministic constellations, so that the default width is used for the missing CIDs. In my case spaces had a doubled width which lead to a false rendering.
      Furthermore the CIDs aren't sorted so that the resulting width array might not be optimal

        Attachments

        1. TTF_good.pdf
          4 kB
          Andreas Lehmkühler
        2. TTF_bad.pdf
          4 kB
          Andreas Lehmkühler

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: