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

U+258C Left Half Block does not have whitespace in right half

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.21.3, 24w45a
    • None
    • Unconfirmed
    • (Unassigned)

      Caused by MC-277712.

      The bug

      Unicode character ▌ U+258C is meant to be a character where the left hand side is filled with a solid color and the right hand side is blank. Its complement, ▐ U+2590, is meant to have the left half blank and the right half solid.

      Minecraft correctly implements U+2590, but not U+258C - the right hand half of whitespace is ignored, and characters that follow are allowed to occupy it.

      This likely affects other characters in Block Elements, however these two characters are explicitly defined in Minecraft's font rather than just the GNU Unifont fallback.

      How to reproduce

      1. Paste in chat: ▌x
      2. Paste in chat: x▐

      Expected results

      In both cases, there would be an identical gap size between the x and rectangle.

      Actual results

      In the first case, the x and rectangle are right next to each other. The second works correctly.

      How to fix

      When defining fonts, there needs to be some way to override width, etc. data for specific characters in cases where the automatically calculated values are unsatisfactory, like is the case here.

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: