Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-17913

Wrong calculation of letter width in custom fonts (resourcepack)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: 0.16.0, 1.0.3
    • Fix Version/s: None
    • Confirmation Status:
      Community Consensus
    • Platform:
      Windows 10 - PC
    • ADO:
      41476

      Description

      I'm trying to make resource pack with custom font.

      And I find that characters' width calculated wrong when glyph image contain transparent background.

      When you use glyph image with colored (black) background all characters' widths detected accurately.

      Here is resourcepack, that you can use for tests: https://goo.gl/iB8hoC

        Attachments

        1. compare-fonts.png
          101 kB
          fromgate
        2. glyph_04_black_background.png
          22 kB
          fromgate
        3. glyph_04_empty_background.png
          22 kB
          fromgate

          Issue Links

            Activity

              People

              • Reporter:
                fromgate fromgate
              • Votes:
                13 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: