[
https://issues.apache.org/jira/browse/PDFBOX-2326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr updated PDFBOX-2326:
------------------------------------
Attachment: GWG090_Font-Support_x3.pdf
> IllegalArgumentException: Use PDType1CFont for FontFile3
> --------------------------------------------------------
>
> Key: PDFBOX-2326
> URL: https://issues.apache.org/jira/browse/PDFBOX-2326
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Labels: MMType1
> Attachments: GWG090_Font-Support_x3.pdf
>
>
> I get this exception with the attached file:
> {code}
> Exception in thread "main" java.lang.IllegalArgumentException: Use
> PDType1CFont for FontFile3
> at
> org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:210)
> at
> org.apache.pdfbox.pdmodel.font.PDMMType1Font.<init>(PDMMType1Font.java:37)
> at
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:69)
> at org.apache.pdfbox.pdmodel.PDResources.getFonts(PDResources.java:171)
> at
> org.apache.pdfbox.util.PDFStreamEngine.getFonts(PDFStreamEngine.java:554)
> at
> org.apache.pdfbox.util.operator.text.SetTextFont.process(SetTextFont.java:48)
> {code}
> The troublesome font is the MMType1 font ExPontoMM.
> [~jahewson] Should the FONT_FILE3 handling that is done in
> PDFontFactory.createFont() also be done for MM_TYPE1? I get a correct
> rendering with that solution.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)