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

Fix font rendering of symbols on windows using gradle run #1688

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

pavelbraginskiy
Copy link
Member

Instead of just hoping the system has Symbola or a suitable fallback font available, this forces the use of Noto Sans Symbols 2, a font we already include with MegaMek.

This fixes the issue that some icons wouldn't render properly when using gradle run on Windows.

Copy link

codecov bot commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 2.13%. Comparing base (f4991ab) to head (bd13ec2).
Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##             master   #1688   +/-   ##
========================================
  Coverage      2.13%   2.13%           
  Complexity      209     209           
========================================
  Files           272     272           
  Lines         31441   31437    -4     
  Branches       5352    5351    -1     
========================================
  Hits            670     670           
+ Misses        30614   30610    -4     
  Partials        157     157           

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

Copy link
Collaborator

@Sleet01 Sleet01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for taking point on this.

@Sleet01
Copy link
Collaborator

Sleet01 commented Jan 9, 2025

@pavelbraginskiy looks like there's a conflict since merging the updated-tab PR.

# Conflicts:
#	megameklab/src/megameklab/ui/MegaMekLabTabbedUI.java
Copy link
Collaborator

@Sleet01 Sleet01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Sleet01 Sleet01 merged commit 23d0649 into MegaMek:master Jan 9, 2025
4 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.

2 participants