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

        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.
        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: