[
https://issues.apache.org/jira/browse/PDFBOX-3344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15276935#comment-15276935
]
Tilman Hausherr commented on PDFBOX-3344:
-----------------------------------------
I do also get that exception, this is because the embedded font is missing a
table. However after that I get this output:
{code}
Mai 09, 2016 10:00:29 PM org.apache.pdfbox.pdmodel.font.PDCIDFontType2 <init>
WARNUNG: Using fallback font LiberationSans for CID-keyed TrueType font
AAAAAC+FedraSansCondStd-Demi
{code}
You get nothing, so for you PDFBox is using this font
{code}
FedraSansCondStd-Demi|OTF||190|0|20000093|0|0|02000506040000020004|C:\Windows\FONTS\FedraSansCondStd-Demi.otf
{code}
This is one for John... I'm wondering how the CID => GlhyphID is kept when a
different font is used.
Can you use a different font? Or ask TCPDF why the "loca" table is missing in
the embedded font?
> 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, helvetica.pdf,
> screenshot_1.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]