You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/10/11 03:29:34 UTC
[jira] [Closed] (PDFBOX-1040) NPE in PDTrueTypeFont.loadTTF(null,
nameOfFont)
[ https://issues.apache.org/jira/browse/PDFBOX-1040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Hewson closed PDFBOX-1040.
-------------------------------
Resolution: Invalid
I'm closing this as invalid as we can't load TTFs just by name.
> NPE in PDTrueTypeFont.loadTTF(null, nameOfFont)
> -----------------------------------------------
>
> Key: PDFBOX-1040
> URL: https://issues.apache.org/jira/browse/PDFBOX-1040
> Project: PDFBox
> Issue Type: New Feature
> Components: PDModel
> Affects Versions: 1.4.0
> Environment: JDK 1.6.0_025, Windows 7 64 Bit
> Reporter: MH
> Priority: Minor
>
> Calling PDTrueTypeFont.loadTTF() or new PDType1AfmPfbFont() with the first parameter (Document) set as null results in a NullPointerException! I set document as null as I don't want the font to be embedded in the document. As I don't see any other constructor for creating fonts omitting the document, I expect to set it to null if I don't want the font to get embedded.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)