[
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)