mojira.dev
MC-263614

The font renderer is acting weird with different chat text sizes

The Minecraft font renderer is acting really weird at different chat text sizes, this causes the font / chat message to miss a few pixels of the letter or character.

I would also like to say that this happens on most minecraft versions, but I only reported on 1.20.1 since it was discovered on this version.

This image is when the 'Chat Text Size' is at 50%:

[media]

This image is when the 'Chat Text Size' is at 62%:

[media]

This image is from when the 'Chat Text Size' is at 90%:

[media]

For reference, this is what the 'Chat Text Size' looks like when at 100% (the default option):

[media]

I noticed that unicode fonts look weird too at different scales, which looks really broken.

This image is when the 'Chat Text Size' is at 50% and unicode fonts on:

[media]

This image is when the 'Chat Text Size' is at 62% and unicode fonts on:

[media]

This image is from when the 'Chat Text Size' is at 90% and unicode fonts on:

[media]

For reference, this is what the 'Chat Text Size' looks like when at 100% (the default option) and unicode fonts on:

[media]

Linked issues

Attachments

Comments 4

I experienced a similar issue, the odd corruption of text when changing the scale is more pronounced for me on Windows. 
This is at 70% Chat Text Size

[media]

I will also add. When using unicode fonts

[media]

This looks really bad and unreadable at 66%

For unicode, you should really stick to MC-2488.

There is a change that can be made to the text shader that remedies this issue.
You can check out the code here. It is based on this video which goes into the details of how it works.
Note that this algorithm requires bilinear filtering to be enabled in the TextureStateShard for the "text" RenderType.

Stantios

(Unassigned)

Confirmed

(Unassigned)

Font, Rendering

1.20.1, 1.20.4, 1.21.3

Retrieved