Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.2 PDFBox
Description
Another found because of PDFBOX-5743.
TrueTypeCollection ttc = new TrueTypeCollection(new File("NotoSerifMyanmar.ttc")); ttc.processAllFonts((TrueTypeFont ttf) -> { System.out.println(ttf.getName()); });
java.io.EOFException: EOF
at org.apache.fontbox.ttf.TTFDataStream.readUnsignedShort(TTFDataStream.java:154)
at org.apache.fontbox.ttf.TTFDataStream.readUnsignedShortArray(TTFDataStream.java:188)
at org.apache.fontbox.ttf.GlyphSubstitutionTable.readMultipleSubstitutionSubtable(GlyphSubstitutionTable.java:561)
at org.apache.fontbox.ttf.GlyphSubstitutionTable.readLookupSubtable(GlyphSubstitutionTable.java:284)
at org.apache.fontbox.ttf.GlyphSubstitutionTable.readLookupTable(GlyphSubstitutionTable.java:451)
at org.apache.fontbox.ttf.GlyphSubstitutionTable.readLookupList(GlyphSubstitutionTable.java:268)
Assuming that such font files are correct, the investigation showed that the table is read several times, i.e. the glyphCount variable was used wrongly.
Attachments
Attachments
Issue Links
- relates to
-
PDFBOX-5743 Getting a bunch of errors when running your simple Hello World example
- Closed