ICEpdf
  1. ICEpdf
  2. PDF-974

Embedded fonts displaying incorrectly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.2, 6.1
    • Fix Version/s: 6.1.1
    • Component/s: Font Engine
    • Labels:
      None
    • Environment:
      software platform

      Description

      I'm using IcePDF library to display PDFs. Under Java 8 (jdk1.8.0_45 32bits), fonts are displayed incorrectly
       

        Activity

        Hide
        Yufei Shao added a comment -

        solved in 6.1.0

        Show
        Yufei Shao added a comment - solved in 6.1.0
        Hide
        Patrick Corless added a comment -

        The file in question uses a CID font with no toUnicode table, if the font loading fails we get a garbled text display. The error is coming from the parsing off the Type1 font and is related to a bounding issue when building a GID table. I've add some code protection to avoid the index out of bounds and the font parses correctly and the file renders correctly.

        Show
        Patrick Corless added a comment - The file in question uses a CID font with no toUnicode table, if the font loading fails we get a garbled text display. The error is coming from the parsing off the Type1 font and is related to a bounding issue when building a GID table. I've add some code protection to avoid the index out of bounds and the font parses correctly and the file renders correctly.
        Hide
        Patrick Corless added a comment -

        Checked a fix to the 6.1 branch and trunk.

        Show
        Patrick Corless added a comment - Checked a fix to the 6.1 branch and trunk.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: