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

Tilman Hausherr commented on PDFBOX-3344:
-----------------------------------------

We do support Identity-H, look in the source code. What we know at this time is 
this:
- your font has a /FontFile2 entry
- that entry expects a TT font
- the font is not a TT font, but an OTF font with CFF embedded
- so fontbox tries to use a replacement from the OS
- on my computer, it uses Liberation Sans
- on your computer, it uses FedraSans OTF but something goes wrong
- what you did this morning, is that you used a TT font, i.e. did what the 
specification expects, and of course, it works :-)

I just tried two trial versions of commercial java products that I don't want 
to name fully
- Ic*PDF doesn't display any glyphs (but my trial version is a year old)
- JP*dal brings an error message, and then shows a replacement font that has 
bad sizes.

Btw your choice of font is a weird one for a mailing - the numbers have 
different sizes.

> Caused by: java.lang.ClassCastException: org.apache.fontbox.ttf.OpenTypeFont 
> can not be cast to org.apache.fontbox.cff.CFFFont
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-3344
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3344
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.1
>            Reporter: 373 mch
>         Attachments: .pdfbox.cache, etichette.pdf, fontfile2.ttf, 
> helvetica.pdf, screenshot_1.png, screenshot_2_pdfdebugger.png, 
> screenshot_3_chrome.png, screenshot_4_acrobat.png, screenshot_5_ansi.png
>
>
> I'm getting this error opening a specific pdf
> {noformat}
> Caused by: java.lang.ClassCastException: org.apache.fontbox.ttf.OpenTypeFont 
> can not be cast to org.apache.fontbox.cff.CFFFont
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to