[
https://issues.apache.org/jira/browse/PDFBOX-1700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Lehmkühler closed PDFBOX-1700.
--------------------------------------
Resolution: Duplicate
Assignee: Andreas Lehmkühler
Closed as duplicate of PDFBOX-1663
> 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
> Assignee: Andreas Lehmkühler
> Priority: Minor
> Labels: newbie
>
> 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