mojira.dev
MC-198584

Typing long text in chat with Force Unicode Font on and then turned off causes it to enlarge and go past the edge of the chat background and vice versa

The bug

When typing long text in chat with Force Unicode Font on and then turning off the option, the text enlarges and goes past the edge of the chat background. When doing the same but with the option off and then turned on afterwards, the text shrinks but does not attempt to fit itself up to the edge of the same background.

How to reproduce

Force Unicode Font on and then off

  1. Make sure Force Unicode Font is on before typing long text in chat

  2. Observe the text after turning the option off
    → ❌ The text goes past the edge

Force Unicode Font off and then on

  1. Make sure Force Unicode Font is off before typing long text in chat

  2. Observe the text after turning the option on
    → ❌ The text does not fit itself accordingly up to the edge

Linked issues

Attachments

Comments 4

Can confirm in 1.16.4 RC1, my guess is that when you send a message, the game automatically formats so it fits into the chat box, lowering the text when it reaches the end of the grey chat text box. Since the force unicode font is smaller than the game's default font, the game can fit more writing on 1 line, and when you switch back to the default font, the text is now larger and longer and hence goes through the grey chat box.

I think this is related to MC-198584

@unknown, you refer to this bug report. Would you mind if you mention another bug report instead of this one?

Can confirm in 1.20.4, the same effect can be seen when changing resource packs with custom fonts that modify line lengths. Relates to MC-254220.

user-a4a49

(Unassigned)

Confirmed

UI

chat, options, text, unicode

1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, ..., 21w41a, 21w42a, 1.20.4, 1.21.3, 1.21.4 Pre-Release 3

Retrieved