[
https://issues.apache.org/jira/browse/PDFBOX-3260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15183758#comment-15183758
]
John Aylward commented on PDFBOX-3260:
--------------------------------------
I've also tried opening this font in Font Forge and re-exporting it with a
header, but I still get errors. Sadly I'm not a font-guru, so I have no idea
how to get this font working. I'm assuming there is some technical reason for
requiring this head, but it seems that it's optional in both the specifications
you linked.
The newest error I get is now this one (using 1.8.11):
{quote}
java.lang.ArrayIndexOutOfBoundsException: 4
at
org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionary(PDTrueTypeFont.java:437)
at
org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:219)
at
org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:195)
at
org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:176)
{quote}
> IOException "head is mandatory" when importing a TTF file
> ---------------------------------------------------------
>
> Key: PDFBOX-3260
> URL: https://issues.apache.org/jira/browse/PDFBOX-3260
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 1.8.11, 2.0.0
> Environment: Linux, Oracle Java8
> Reporter: John Aylward
>
> I'm trying to import this font
> (http://www.1001fonts.com/micr-encoding-font.html#character-map) but I get
> the following exception:
> {quote}
> java.io.IOException: head is mandatory
> at org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:181)
> at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:150)
> at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:106)
> at org.apache.pdfbox.pdmodel.font.PDType0Font.load(PDType0Font.java:78)
> {quote}
> A similar issue happens with 1.8.11 as well.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]