Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-267578

Messages in chat HUD do not rewrap on font reload

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.20.4
    • OS: Linux
      Java: openjdk version "17.0.9" 2023-10-17
      OpenJDK Runtime Environment (build 17.0.9+8)
      OpenJDK 64-Bit Server VM (build 17.0.9+8, mixed mode)
    • Unconfirmed
    • (Unassigned)

      When fonts are affected by a resource reload, the messages in the chat HUD do not get rewrapped, even if this becomes necessary due to changes in font metrics.

      Reproduction

      1. Place the attached resource pack in the resourcepacks directory (but don’t enable it yet). This resource pack changes the width of the space character to 16.
      2. Enter a world and send a long chat message.
      3. Load the widespace resource pack.
      4. Note that the previous message overflows the right edge of the chat HUD.
      5. Send the same message again.
      6. Unload the widespace resource pack.
      7. Note that the second message wraps too narrowly.

        1. widespace_off.png
          widespace_off.png
          611 kB
        2. widespace_on.png
          widespace_on.png
          606 kB
        3. widespace.zip
          1 kB

            Unassigned Unassigned
            fluffy8x +merlan #flirora
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: