[ 
https://issues.apache.org/jira/browse/PDFBOX-4104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16360660#comment-16360660
 ] 

Maruan Sahyoun commented on PDFBOX-4104:
----------------------------------------

Would it be possible to add the WOFF file too?

> Unexpected end of TTF stream reached
> ------------------------------------
>
>                 Key: PDFBOX-4104
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4104
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.8
>            Reporter: Dmitri Blinov
>            Priority: Minor
>         Attachments: Lobster-Regular-bad.otf
>
>
> I get the following error 
> {quote}
> java.io.IOException: Unexpected end of TTF stream reached
>       at org.apache.fontbox.ttf.TTFDataStream.read(TTFDataStream.java:274) 
> ~[fontbox-2.0.8.jar:2.0.8]
>       at 
> org.apache.fontbox.ttf.TTFDataStream.readString(TTFDataStream.java:91) 
> ~[fontbox-2.0.8.jar:2.0.8]
>       at 
> org.apache.fontbox.ttf.TTFDataStream.readString(TTFDataStream.java:64) 
> ~[fontbox-2.0.8.jar:2.0.8]
>       at 
> org.apache.fontbox.ttf.PostScriptTable.read(PostScriptTable.java:104) 
> ~[fontbox-2.0.8.jar:2.0.8]
>       at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:335) 
> ~[fontbox-2.0.8.jar:2.0.8]
>       at org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:173) 
> ~[fontbox-2.0.8.jar:2.0.8]
>       at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:150) 
> ~[fontbox-2.0.8.jar:2.0.8]
>       at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:106) 
> ~[fontbox-2.0.8.jar:2.0.8]
>       at org.apache.pdfbox.pdmodel.font.PDType0Font.load(PDType0Font.java:79) 
> ~[pdfbox-2.0.8.jar:2.0.8]
> }}
> {quote} when I try to load the attached TTF file. This is original 
> Lobster-regular font but it was converted from WOFF to TTF format by the 
> FontVerter library. The TTF itself correctly displays in Windows, so I could 
> expect it should be correctly loaded by {{PDType0Font.load()}} method



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

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

Reply via email to