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

Split character widths into their own line to have a cleaner diff #2785

Merged
merged 2 commits into from
May 8, 2024

Conversation

Phoenix616
Copy link
Contributor

@Phoenix616 Phoenix616 commented May 8, 2024

This fixes wrong widths of special characters for calculating the display string width for the default Minecraft font. These widths were validated by me now again and also match what I have been using in TravelPortals for a while now. (The widths in TravelPortals are all one less than the ones in BetonQuests' class as that calculator manually adds the 1px width between chars in the calculation)

I also took the liberty of improving the way the LocalChatPaginator is formatted.

  • For one I put every char on its own line to better see changes and have a better overview over the values
  • Removed all characters that use the default width as the query from the map already used the DEFAULT_CHAR_WIDTH and they just make the list of widths a lot harder to read
  • Removed a random empty line

Related Issues

Closes #XXXX Couldn't find one that looks exactly like this, maybe #2005 could be somewhat related although I didn't really understand what the issue exactly is in there.

Requirements

Reviewer's checklist

Did the contributor...

Check if the build pipeline succeeded for this PR!

Characters with default width will just use the DEFAULT_CHAR_WIDTH
 when querying from the map anyways and this makes the special widths
 easier to see.
@Wolf2323 Wolf2323 enabled auto-merge May 8, 2024 13:35
@Wolf2323 Wolf2323 merged commit 750567e into BetonQuest:main May 8, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants