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

Restore font replacement for pdf printing #1713

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

SJuliez
Copy link
Member

@SJuliez SJuliez commented Feb 4, 2025

This fixes font tag replacement for PDF printing. Still, this only works with printing. For PDF export it has no effect but the cause is elsewhere (Apache FOP, apparently, that cannot use OS-installed fonts)

fixes #1695

Copy link

codecov bot commented Feb 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 2.14%. Comparing base (cfcc575) to head (dadbdac).
Report is 13 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##             master   #1713      +/-   ##
===========================================
+ Coverage      2.13%   2.14%   +0.01%     
- Complexity      209     211       +2     
===========================================
  Files           271     271              
  Lines         31409   31405       -4     
  Branches       5342    5343       +1     
===========================================
+ Hits            670     674       +4     
+ Misses        30582   30572      -10     
- Partials        157     159       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pavelbraginskiy
Copy link
Member

Does this affect how record sheets look when printed or does this just get rid of the error messages?

@SJuliez
Copy link
Member Author

SJuliez commented Feb 5, 2025

It changes the printed sheet.

@pavelbraginskiy
Copy link
Member

Ok, I see now. There are some fonts that wouldn't be replaced with your chosen font previously, but if you were using Eurostile anyway, it shouldn't matter.

Since export isn't affected we're not worried about this affecting CGL sheets, so you should be safe to merge this one.

@HammerGS HammerGS merged commit e7461f5 into MegaMek:master Feb 6, 2025
6 checks passed
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.

NullPointerException: Cannot invoke "org.w3c.dom.NodeList.item(int)" because "this.iterator" is null
3 participants