ICEpdf
  1. ICEpdf
  2. PDF-251

AFM widths not being applied to OS Fonts

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.1, 4.1.2, 4.1.3
    • Fix Version/s: 4.2
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      ICEpdf OS 4.1.1 and higher.

      Description

      There has been quite bit of chatter around this issue as well as some speculations. As it turns out the issue is related to a fix that went into ICEpdf 4.1.1, PDF-204. The bug fixed an issue where we didn't return font name that was a string. The side effect of fixing this bug was that it also activate an old code path that would load the AFM font metric file.

      The AFM file font widths where not being correctly scaled as a result and the side effect was that font spacing was about 1000 greater then is should be.

        Activity

        Patrick Corless created issue -
        Hide
        Patrick Corless added a comment -

        Targeting 4.2.

        Show
        Patrick Corless added a comment - Targeting 4.2.
        Patrick Corless made changes -
        Field Original Value New Value
        Salesforce Case []
        Fix Version/s 4.2 [ 10243 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #23808 Fri Jan 14 11:51:55 MST 2011 patrick.corless PDF-251 tweaked get font name to be a little more efficient.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/fonts/ofont/Font.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #23809 Fri Jan 14 11:52:56 MST 2011 patrick.corless PDF-251 update AFM parser to convert width values to 1/1000 the orginal width to work correctly for PDFs.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/fonts/AFM.java
        Hide
        Patrick Corless added a comment -

        Updated the AFM.java to properly scale font widths for use in PDF documents. The addresses the missing text issue seen by a number of community members. This bug only effects the OS version of the file.

        Show
        Patrick Corless added a comment - Updated the AFM.java to properly scale font widths for use in PDF documents. The addresses the missing text issue seen by a number of community members. This bug only effects the OS version of the file.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: