Description
I have been using a particular TrueType font with
many previous versions of PDFBox. It loaded and worked fine
up to version 1.6.0. Now at level 1.7.0, I get a
NullPointerException when attempting to load this
TTF file:
Exception: java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionary(PDTrueTypeFont.java:319)
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)
at test.<init>(test.java:23)
at test.main(test.java:36)
My testcase (simply performing a loadTTF()) works with 1.6.0
of PDFBox. This font is certainly an oldie, but it does validate
using "Font Book" on my Mac. That program looks through a TrueType font,
checking all internal tables for correctness.
I have attached a copy of the .ttf file.
Attachments
Attachments
Issue Links
- is related to
-
PDFBOX-1349 Postscript tables of truetype fonts are not correctly parsed.
- Closed