Description
using this code to parse the ttf file:
public static void main(String[] args) throws IOException
got exception with stacktrace:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 41280
at org.apache.fontbox.ttf.CMAPEncodingEntry.processSubtype2(CMAPEncodingEntry.java:429)
at org.apache.fontbox.ttf.CMAPEncodingEntry.initSubtable(CMAPEncodingEntry.java:82)
at org.apache.fontbox.ttf.CMAPTable.initData(CMAPTable.java:90)
at org.apache.fontbox.ttf.AbstractTTFParser.parseTables(AbstractTTFParser.java:163)
at org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:61)
at org.apache.fontbox.ttf.AbstractTTFParser.parseTTF(AbstractTTFParser.java:90)
at org.apache.fontbox.ttf.TTFParser.parseTTF(TTFParser.java:26)
at org.apache.fontbox.ttf.AbstractTTFParser.parseTTF(AbstractTTFParser.java:43)
at org.apache.fontbox.ttf.TTFParser.parseTTF(TTFParser.java:26)
at elmar.demo.TFFTest.main(TFFTest.java:11)
Attachments
Attachments
Issue Links
- depends upon
-
PDFBOX-490 Pdf Printing of text from embedded fonts
- Closed