ICEpdf
  1. ICEpdf
  2. PDF-842

Fonts rendered very close together

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.1
    • Fix Version/s: 5.1.2
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      All

      Description

      With the provided PDF file, the fonts are rendered very close together and end up overlapping each other, making it difficult to read.

        Activity

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Support Case References Support Case #13219 - https://icesoft.my.salesforce.com/5007000000wMNbs Support Case #13219 - https://icesoft.my.salesforce.com/5007000000wMNbs
        Support Case #13326 - https://icesoft.my.salesforce.com/5007000000wNVvf
        Patrick Corless made changes -
        Fix Version/s 5.1.2 [ 11872 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44023 Fri Feb 06 14:34:33 MST 2015 patrick.corless PDF-842 layout experiment to check side effects in QA.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
        Hide
        Patrick Corless added a comment -

        This took way to long to finally figure out. After chasing many ghosts it turns out that the font widths defined by the fonts are incomplete or incorrect. The font contains almost 3500 glyphs and defines only 3 width one of which is zero. The PDF contains no width information in the font dictionary either. I've tried a few other editors and they tend to crash when trying to load the font which gives further validity to the fact that font maybe corrupt.

        I've added some code to test the length of the widths vs the number of glyphs in the hopes of adding a little fuzzy logic to detect when the fonts width maybe incorrect.

        Show
        Patrick Corless added a comment - This took way to long to finally figure out. After chasing many ghosts it turns out that the font widths defined by the fonts are incomplete or incorrect. The font contains almost 3500 glyphs and defines only 3 width one of which is zero. The PDF contains no width information in the font dictionary either. I've tried a few other editors and they tend to crash when trying to load the font which gives further validity to the fact that font maybe corrupt. I've added some code to test the length of the widths vs the number of glyphs in the hopes of adding a little fuzzy logic to detect when the fonts width maybe incorrect.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44042 Tue Feb 10 14:33:39 MST 2015 patrick.corless PDF-842 added a check to look for truetype font widths that might be inconsistent.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
        Hide
        Patrick Corless added a comment -

        Finally worked through this issue, the file in question does not specify any fonts widths for the embedded CIDType2. In this particular case we should be using the the default DW all all glyph widths or at least that's the pattern I'm seeing.

        Show
        Patrick Corless added a comment - Finally worked through this issue, the file in question does not specify any fonts widths for the embedded CIDType2. In this particular case we should be using the the default DW all all glyph widths or at least that's the pattern I'm seeing.
        Hide
        Patrick Corless added a comment -

        Fix has passed QA, marking as fixed.

        Show
        Patrick Corless added a comment - Fix has passed QA, marking as fixed.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: