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

ArrayIndexOutOfBoundsException while loading ttf font

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.8.0
    • None
    • None

    Description

      While loading TTF font I'm getting exception (below). That font is OpenSans-Regular.ttf from http://www.google.com/webfonts

      Caused by: java.lang.ArrayIndexOutOfBoundsException: 931
      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionary(PDTrueTypeFont.java:360)
      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:166)
      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:142)
      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:129)

      Attachments

        Activity

          People

            Unassigned Unassigned
            mhankus Mirek Hankus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: