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 (partly) BA equipment text overlap #1383

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

SJuliez
Copy link
Member

@SJuliez SJuliez commented Jan 12, 2024

Removes BA RS equipment overlap ... most of the time.
This PR reduces the minimum line distance and font size a bit, turns around scaling to reduce line spacing before font size and removes a line width adjustment for the location column that shouldn't be done on BA.
Edit: forgot to add what the actual change is: the scaleText() method had a logic error that would not ever let it reduce line spacing.

image
instead of
image

Unfortunately for some equipment the calculated line count is not quite right, causing overlap, and, so far, I was unable to see why. Maybe because the line counter will only count 2 lines at most while the actual equipment may even use 3 lines.
As this affects other unit types as well, I printed an Ares Hera and it still works

image

@neoancient neoancient merged commit bd2d954 into MegaMek:master Jan 16, 2024
3 of 4 checks passed
@SJuliez SJuliez deleted the ba-rs-overlap branch March 9, 2024 09:23
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