You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "martono (JIRA)" <ji...@apache.org> on 2017/06/16 10:26:00 UTC
[jira] [Comment Edited] (PDFBOX-3515) Problems with CourierStd font
[ https://issues.apache.org/jira/browse/PDFBOX-3515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16051735#comment-16051735 ]
martono edited comment on PDFBOX-3515 at 6/16/17 10:25 AM:
-----------------------------------------------------------
Is this case closed?
I am having similar problem on pdfbox-2.0.6, but the strange thing is it only happen on 1 environment. While in other 2 environment it works fine.
was (Author: martono):
Is this case closed?
I am having similar problem on pdfbox-2.0.6, but the strange thing is only happen on 1 environment. While in other environment it works fine.
> Problems with CourierStd font
> -----------------------------
>
> Key: PDFBOX-3515
> URL: https://issues.apache.org/jira/browse/PDFBOX-3515
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 2.0.3, 2.0.4, 3.0.0
> Environment: windows
> Reporter: Esteban Nicolas Ruiz
> Assignee: John Hewson
> Attachments: fontpatch.patch, out.pdf
>
>
> Pdf file using CourierStd font doesn't display properly with PDF Debugger (CourierStd font not installed, using substitute font). File is properly displayed in Adobe Reader.
> PDF Debugger output:
> {code}
> ADVERTENCIA: Using fallback LiberationSans for CID-keyed font CourierStd
> sep 27, 2016 4:42:00 PM org.apache.pdfbox.pdmodel.font.PDType0Font toUnicode
> ADVERTENCIA: No Unicode mapping for CID+36 (36) in font CourierStd
> sep 27, 2016 4:42:00 PM org.apache.pdfbox.rendering.CIDType0Glyph2D getPathForCharacterCode
> ADVERTENCIA: No glyph for 36 (CID 0024) in font CourierStd
> {code}
> If I install CourierStd otf font from http://freeopentypefonts.com/fonts-beginning-with-c/courierstd-open-type-font-download-open-type-font then I get the following exception:
> {code}
> java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.ClassCastException: org.apache.fontbox.cff.CFFType1Font cannot be cast to org.apache.fontbox.cff.CFFCIDFont
> org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.done(PagePane.java:258)
> sun.swing.AccumulativeRunnable.run(Unknown Source)
> java.security.AccessController.doPrivileged(Native Method)
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
> Caused by: java.util.concurrent.ExecutionException: java.lang.ClassCastException: org.apache.fontbox.cff.CFFType1Font cannot be cast to org.apache.fontbox.cff.CFFCIDFont
> org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.done(PagePane.java:247)
> sun.swing.AccumulativeRunnable.run(Unknown Source)
> java.security.AccessController.doPrivileged(Native Method)
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
> Caused by: java.lang.ClassCastException: org.apache.fontbox.cff.CFFType1Font cannot be cast to org.apache.fontbox.cff.CFFCIDFont
> org.apache.pdfbox.pdmodel.font.PDCIDFontType0.<init>(PDCIDFontType0.java:134)
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:121)
> org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:128)
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:83)
> org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:143)
> {code}
> Maybe similar to: https://issues.apache.org/jira/browse/PDFBOX-3344
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org