[
https://issues.apache.org/jira/browse/PDFBOX-5214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17407473#comment-17407473
]
Andreas Lehmkühler commented on PDFBOX-5214:
--------------------------------------------
I'm done here. I've implemented the following changes:
* all static instances of PDType1Font were removed for the given reasons
* the new enum {{org.apache.pdfbox.pdmodel.font.Standard14Fonts.FontName}}
represents all possible names for a Standard 14 font
* the new constructor
{{org.apache.pdfbox.pdmodel.font.PDType1Font.PDType1Font(FontName)}} can be
used to create an instance of a Standard 14 font. Such instances aren't
singletons any more and have to be recreated/cached if needed/suitable
* the AFM-files are loaded on demand and are cached to avoid a reload
* {{org.apache.pdfbox.pdmodel.font.Standard14Fonts.getMappedFont(FontName)}}
returns a mapped font for all Standard 14 fonts. All found mappings are cached.
> File generated differently depending on test call
> -------------------------------------------------
>
> Key: PDFBOX-5214
> URL: https://issues.apache.org/jira/browse/PDFBOX-5214
> Project: PDFBox
> Issue Type: Bug
> Components: Writing
> Affects Versions: 3.0.0 PDFBox
> Reporter: Tilman Hausherr
> Assignee: Andreas Lehmkühler
> Priority: Major
> Fix For: 3.0.0 PDFBox
>
> Attachments: EmptySignatureForm_FullPackageTest.pdf,
> EmptySignatureForm_SingleClassTest.pdf
>
>
> Something weird is happening in {{TestCreateSignature.testPDFBox3978}}. The
> file {{EmptySignatureForm.pdf}} that is generated has different object
> streams depending on whether it is generated within a full test of the
> examples package, or if the {{TestCreateSignature}} class is tested. The two
> files should be identical except for the ID.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]