You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2018/12/02 17:11:00 UTC

[jira] [Closed] (PDFBOX-4104) Unexpected end of TTF stream reached

     [ https://issues.apache.org/jira/browse/PDFBOX-4104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler closed PDFBOX-4104.
--------------------------------------

> 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, Lobster-Regular.ttf, Lobster-Regular.woff, image-2018-02-12-15-49-56-197.png, image-2018-02-12-15-50-25-544.png
>
>
> 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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org