[
https://issues.apache.org/jira/browse/PDFBOX-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14048732#comment-14048732
]
Andreas Lehmkühler commented on PDFBOX-2169:
--------------------------------------------
[~jahewson] IANAL but according to the
[license|http://www.latex-project.org/lppl.txt] those fonts can only be used
unmodified. You are using a modified version, as you just picked one font out
of 35 and you derived a new version of the font by using font forge. If my
assumption is correct we are not allowed to add such files to svn, see
[previously answered
questions|http://www.apache.org/legal/resolved.html#no-modification]
> NPE in PDTrueTypeFont.makeFontDescriptor
> ----------------------------------------
>
> Key: PDFBOX-2169
> URL: https://issues.apache.org/jira/browse/PDFBOX-2169
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Assignee: John Hewson
> Attachments: 000153.pdf
>
>
> The attached file brings this exception when rendering or when extracting text
> {code}
> java.lang.NullPointerException
> at
> org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.makeFontDescriptor(PDTrueTypeFont.java:161)
> at
> org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.getFontDescriptor(PDTrueTypeFont.java:150)
> at org.apache.pdfbox.pdmodel.font.PDFont.getFontWidth(PDFont.java:814)
> at
> org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.getFontWidth(PDTrueTypeFont.java:382)
> at org.apache.pdfbox.pdmodel.font.PDFont.getFontWidth(PDFont.java:312)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:377)
> at org.apache.pdfbox.util.operator.ShowText.process(ShowText.java:44)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:508)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)