You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Villu Ruusmann (JIRA)" <ji...@apache.org> on 2010/03/16 21:46:37 UTC
[jira] Created: (PDFBOX-663) Ensuring non-null FontDescriptor for
external TrueType fonts
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.
[jira] Updated: (PDFBOX-663) Ensuring non-null FontDescriptor for
external TrueType fonts
Posted by "Villu Ruusmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Villu Ruusmann updated PDFBOX-663:
----------------------------------
Attachment: PDFBox.patch
> 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.
[jira] Commented: (PDFBOX-663) Ensuring non-null FontDescriptor for
external TrueType fonts
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12848330#action_12848330 ]
Andreas Lehmkühler commented on PDFBOX-663:
-------------------------------------------
+1 looks good to me
> 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.
[jira] Closed: (PDFBOX-663) Ensuring non-null FontDescriptor for
external TrueType fonts
Posted by "Villu Ruusmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Villu Ruusmann closed PDFBOX-663.
---------------------------------
Resolution: Fixed
Committed as revision 927000
> 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.
[jira] Commented: (PDFBOX-663) Ensuring non-null FontDescriptor for
external TrueType fonts
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ 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.