Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make use of compositeFontDrawer configurable #588

Merged
merged 2 commits into from
Aug 19, 2021

Conversation

mppperez
Copy link

@mppperez mppperez commented Aug 14, 2021

Description of the new Feature/Bugfix

Made the use of the 2019s introduced CompositeFontDrawer configurable via system property or by setting it programmatically via setter. Staying backwards compatible by enabling the compositeFontDrawer by default.

Related Issue: #587

Compatibilities Issues

Backwards compatible

Testing details

Generate PDF with custom mapper that does not default to Helvetica and use different fonts from Sans-Serif. Try using Helvetica without having it installed (e.g. Windows or *nix) and it will simply choose another Sans-Serif font(s) that is able to display the specified character(s).

With the new flag enabled the old behaviour is used which works perfectly fine for us since the given fonts in PdfGraphics2D were correctly initialized in our code. If in any case on the target system the specified font cannot be found an exception should be thrown rather than using another font (which was done with the old behaviour).

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@asturio asturio merged commit fed5154 into LibrePDF:master Aug 19, 2021
@asturio asturio added this to the 1.3.27 milestone Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set Font in PdfGraphics2D not working / PdfGraphics2D manipulates set Font (not expected)
2 participants