Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-1700

TTF Font fails to load

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.8.1
    • None
    • PDModel
    • AMD64, Ubuntu 13.04, Java 1.7.0_25, pdfbox-app-1.8.2.jar

    Description

      Array index out of bounds attempting to load true type font. Statement that failed is...
      PDTrueTypeFont.loadTTF(document, "/usr/share/fonts/truetype/liberation/LiberationMono-Regular.ttf");
      Error is
      java.lang.ArrayIndexOutOfBoundsException: 5 at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionary(PDTrueTypeFont.java:418)
      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:201)
      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:177)
      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:158)
      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:145)
      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:132)

      ... Please accept apologies if this is a user error. Font file is as installed by Ubuntu, exists and is viewable. Changing the file name produces 'no such file or directory', as expected, so pretty sure it has found the file.

      Attachments

        Issue Links

          Activity

            People

              lehmi Andreas Lehmkühler
              hamiljf John Hamilton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: