You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hamilton (JIRA)" <ji...@apache.org> on 2013/08/20 15:42:51 UTC

[jira] [Created] (PDFBOX-1700) TTF Font fails to load

John Hamilton created PDFBOX-1700:
-------------------------------------

             Summary: TTF Font fails to load
                 Key: PDFBOX-1700
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1700
             Project: PDFBox
          Issue Type: Bug
          Components: PDModel
    Affects Versions: 1.8.1
         Environment: AMD64, Ubuntu 13.04, Java 1.7.0_25, pdfbox-app-1.8.2.jar
            Reporter: John Hamilton
            Priority: Minor


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.




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira