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

Reply via email to