You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "berylbai (JIRA)" <ji...@apache.org> on 2019/02/20 08:03:00 UTC

[jira] [Created] (PDFBOX-4469) Exception in thread "main" java.io.EOFException when load a TTF file

berylbai created PDFBOX-4469:
--------------------------------

             Summary: Exception in thread "main" java.io.EOFException when load a TTF file
                 Key: PDFBOX-4469
                 URL: https://issues.apache.org/jira/browse/PDFBOX-4469
             Project: PDFBox
          Issue Type: Bug
          Components: FontBox
    Affects Versions: 2.0.13
            Reporter: berylbai
         Attachments: simsumb.ttf

Exception in thread "main" java.io.EOFException
 at java.io.RandomAccessFile.readUnsignedShort(RandomAccessFile.java:745)
 at org.apache.fontbox.ttf.RAFDataStream.readUnsignedShort(RAFDataStream.java:128)
 at org.apache.fontbox.ttf.GlyphSubstitutionTable.readLangSysTable(GlyphSubstitutionTable.java:150)
 at org.apache.fontbox.ttf.GlyphSubstitutionTable.readScriptTable(GlyphSubstitutionTable.java:129)
 at org.apache.fontbox.ttf.GlyphSubstitutionTable.readScriptList(GlyphSubstitutionTable.java:98)
 at org.apache.fontbox.ttf.GlyphSubstitutionTable.read(GlyphSubstitutionTable.java:78)
 at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:353)
 at org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:173)
 at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:150)
 at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:87)
 at org.apache.pdfbox.pdmodel.font.PDType0Font.load(PDType0Font.java:66)
 at pdfboxTest.Test.main(Test.java:69)

 

PDFont font = PDType0Font.load(doc, new File("simsumb.ttf"));



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org