Description
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.
Attachments
Attachments
Issue Links
- relates to
-
PDFBOX-62 Incorrect (zero) character widths returned in some docs
- Closed