[
https://issues.apache.org/jira/browse/PDFBOX-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14049015#comment-14049015
]
John Hewson commented on PDFBOX-2169:
-------------------------------------
Yep, the licensing situation around the LPPL is more complex than I'd hoped. I
think I may have found a better solution, the [Liberation
fonts|https://fedorahosted.org/liberation-fonts/] are now under the [SIL Open
Font License, Version
1.1|http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web].
The only questionable part is as follows:
{quote}
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves.
{quote}
Any thoughts?
> 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)