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

Incomplete widths array for CID-fonts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • PDModel
    • 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_bad.pdf
          4 kB
          Andreas Lehmkühler
        2. TTF_good.pdf
          4 kB
          Andreas Lehmkühler

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: