mojira.dev
MC-310185

The debug overlay GUI scale can be an odd number even when the "Force Unicode Font" option is enabled

When the “Force Unicode Font” option is enabled, the game enforces that the GUI scale is an even number, even when set to an odd number. The debug overlay’s GUI scale acts the same if set to “Unchanged” or a specific number. When set to “Auto” however, the calculated GUI scale is half of the maximum possible for that resolution, which may be an odd number, and there is no check for whether “Force Unicode Font” is enabled at this point, which allows the effective GUI scale of the debug overlay to be an odd number.

How to reproduce:

  1. Resize the window to the default windowed resolution (854x480).

  2. Go to Options… → Language… → Font Settings…

  3. Enable the “Force Unicode Font” option.

  4. Open the Debug Options menu (F3+F6 by default).

  5. Set the “GUI Scale” option to “Auto.”

  6. Close the Debug Options menu.

  7. Open the debug overlay (F3 by default).
    -> ❌ The GUI scale of the debug overlay is 1, which makes it unreadable.

Expected result:

GUI scales wouldn’t ever be allowed to be set to odd numbers with the “Force Unicode Font” option enabled.

Observed result:

The GUI scale of the debug overlay can be an odd number with the “Force Unicode Font” option enabled.

Attachments

Comments 1

[Mod] ManosSef

Nathan Adams

Community Consensus

Platform G

Normal

Debug

26.3 Snapshot 4

Retrieved