ICEpdf
  1. ICEpdf
  2. PDF-181

Umlauts are rendered incorrectly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.1
    • Fix Version/s: 4.2
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      -
    • Assignee Priority:
      P3

      Description

      Umlauts are rendered in an incorrect bold color and positioned very close to the character to the right. This issue occurs when the Frutiger fonts are installed on the local system and result in ICEpdf throwing the following font substitution error message during rendering:

      <message>Font Substitution: Found failed Frutiger45light,Italic Arial-BoldMT</message>

        Activity

        Hide
        Patrick Corless added a comment -

        I manged to edit the pdfviewerfontcache.properties to get the fonts in question to load correctly. However the output didn't look much better the Umlaut was still pretty close to the next character. Actually in Acrobat it is pretty close too.

        The reason they are seeing font "found failed" is that the fonts in question do not have enought naming information embedded in the font file. For example they are list as follows:

        ftb--- /frutiger65bold c\:\\windows\\fonts
        FTB.TTF
        ftlb-- /frutiger45light c\:\\windows\\fonts
        Ftlb.ttf
        ftl--- /frutiger45light c\:\\windows\\fonts
        FTL.TTF

        For frutiger65bold everything is OK as we can get the bold information from the font base name. However the font names ftlb and ftlb have the same base name and no notion of bold or italic.

        The only way to make this work is so to go into the pdfviewerfontcache.properties and tweak the font style value. Here are the reference integers.

        boldItalic = -268431360
        italic = -268435200
        bold = -268435440
        plain = -268435455

        Show
        Patrick Corless added a comment - I manged to edit the pdfviewerfontcache.properties to get the fonts in question to load correctly. However the output didn't look much better the Umlaut was still pretty close to the next character. Actually in Acrobat it is pretty close too. The reason they are seeing font "found failed" is that the fonts in question do not have enought naming information embedded in the font file. For example they are list as follows: ftb--- /frutiger65bold c\:\\windows\\fonts FTB.TTF ftlb-- /frutiger45light c\:\\windows\\fonts Ftlb.ttf ftl--- /frutiger45light c\:\\windows\\fonts FTL.TTF For frutiger65bold everything is OK as we can get the bold information from the font base name. However the font names ftlb and ftlb have the same base name and no notion of bold or italic. The only way to make this work is so to go into the pdfviewerfontcache.properties and tweak the font style value. Here are the reference integers. boldItalic = -268431360 italic = -268435200 bold = -268435440 plain = -268435455
        Hide
        Patrick Corless added a comment -

        Customer is reporting the PDF in question is rendering in a satisfactory way. Closing issue.

        Show
        Patrick Corless added a comment - Customer is reporting the PDF in question is rendering in a satisfactory way. Closing issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: