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

UIText: Check if the textWidth is 0 instead of if the string is empty #143

Merged

Conversation

caoimhebyrne
Copy link
Member

This fixes an issue on certain versions of Minecraft where the vanilla font provider returns a width of 0 for unsupported characters. This caused the scale to be calculated incorrectly later on, which completely broke rendering.

This fixes an issue on certain versions of Minecraft where the vanilla
font provider returns a width of 0 for unsupported characters. This
caused the scale to be calculated incorrectly later on, which completely
broke rendering.
@caoimhebyrne caoimhebyrne merged commit 4d58009 into master May 9, 2024
1 check passed
@caoimhebyrne caoimhebyrne deleted the fix/uitext-erroring-with-unsupported-characters branch May 9, 2024 14: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