[
https://issues.apache.org/jira/browse/PDFBOX-663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12849120#action_12849120
]
Jukka Zitting commented on PDFBOX-663:
--------------------------------------
+1 Looks good to me too. Do you have time to commit the patch, or should I? I'm
hoping to wrap up the 1.1.0 release shortly.
> Ensuring non-null FontDescriptor for external TrueType fonts
> ------------------------------------------------------------
>
> Key: PDFBOX-663
> URL: https://issues.apache.org/jira/browse/PDFBOX-663
> Project: PDFBox
> Issue Type: Improvement
> Components: PDModel
> Affects Versions: 1.1.0
> Reporter: Villu Ruusmann
> Fix For: 1.1.0
>
> Attachments: PDFBox.patch
>
>
> Class PDTrueTypeFont assumes that there is always a non-null
> FontDescriptor(Dictionary) available. However, I've seen this assumption
> failing with a NullPointerException in method PDTrueTypeFont#drawString when
> trying to render PDF documents that make use of external TrueType fonts.
> I've implemented a small patch that initializes empty
> FontDescriptorDictionary if one is missing, and tries to fill it in with
> information available from the external TTF resource.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.