ICEpdf
  1. ICEpdf
  2. PDF-788

Arabic fonts not displaying correctly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.7
    • Fix Version/s: 5.1
    • Component/s: Core/Parsing, Font Engine
    • Labels:
      None
    • Environment:
      All

      Description

      The Arabic fonts used in the provided PDF file are rendered incorrectly. This PDF file renders fine in Adobe. No errors were seen in the console when rendering.

        Activity

        Hide
        Patrick Corless added a comment -

        The file in question uses an undocumented Encoding type for the Arabic glyphs. The encoding format is as follows:

        9 0 obj
        <<
        /Type /Encoding
        /Differences
        [ 0 /uni060C
        1 /uni061B
        2 /uni061F
        3 /uni0621
        ...
        233 /uniFEF5
        234 /uniFEF6
        235 /uniFEF7
        236 /uniFEF8
        237 /uniFEF9
        238 /uniFEFA
        239 /uniFEFB
        240 /uniFEFC
        241 /uniFEFD
        242 /uniFEFE
        243 /uniFEFF ]

        There is no mentioned of character names /uniHexCode in the PDF specification. If I were to guess this is a just format used by SAP. I've looked up the mappings 164->/uniFEB0 and the mapping appears to be valid, and corresponds to the character 'ARABIC LETTER ZAIN FINAL FORM' I need to figure out a way to detect and assign the correct glyph for this undocumented format.

        Show
        Patrick Corless added a comment - The file in question uses an undocumented Encoding type for the Arabic glyphs. The encoding format is as follows: 9 0 obj << /Type /Encoding /Differences [ 0 /uni060C 1 /uni061B 2 /uni061F 3 /uni0621 ... 233 /uniFEF5 234 /uniFEF6 235 /uniFEF7 236 /uniFEF8 237 /uniFEF9 238 /uniFEFA 239 /uniFEFB 240 /uniFEFC 241 /uniFEFD 242 /uniFEFE 243 /uniFEFF ] There is no mentioned of character names /uniHexCode in the PDF specification. If I were to guess this is a just format used by SAP. I've looked up the mappings 164->/uniFEB0 and the mapping appears to be valid, and corresponds to the character 'ARABIC LETTER ZAIN FINAL FORM' I need to figure out a way to detect and assign the correct glyph for this undocumented format.
        Hide
        Patrick Corless added a comment -

        Fix appears to be valid, closing.

        Show
        Patrick Corless added a comment - Fix appears to be valid, closing.
        Hide
        Patrick Corless added a comment -

        QA passed, marking as resolved.

        Show
        Patrick Corless added a comment - QA passed, marking as resolved.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: