PDResources overrides any existing font when calling addFont
------------------------------------------------------------
Key: PDFBOX-1289
URL: https://issues.apache.org/jira/browse/PDFBOX-1289
Project: PDFBox
Issue Type: Bug
Components: PDModel
Affects Versions: 1.7.0
Reporter: Jean-Philippe Bougie
If you call addFont on a PDResource (for example, while calling setFont on a
PDPageContentStream) without first having manually called getFonts on the
resource, the "fonts" field will be set to a new hashmap. It will thus forego
loading any existing font from the dictionary, and make those fonts disappear
when saving the file again. The bug was probably introduced by the removal of
the font mapping in the resources.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira