mojira.dev
MC-256145

Overwriting unicode characters with a resource pack sometimes does not overwrite characters width

Changing characters with a resource pack in a unicode_page_XX.png file located under assets/minecraft/textures/font at least sometimes does not change the characters with, so making a character smaller than the original one, will result in a gap, while making a bigger one will cause it to get cut of. For example making the unicode_page_aa.png file completly white will cause all the boxes to be different withs and looking at the original characters, the sizes match. If there is no character in the original unicode wile, that the character will also be displayed as a box, even if it has been added with a resource pack. For example everything in after unicode AA37 (AA38, AA39...) will just be a box, even if it should be something different.

Attachments

Comments 2

At least what I assume is that when drawing a character it first checks if the character exists, then it checks where the most outer points on the left and right are and then it cuts out the part and displays it, however instead of using the resource packs Unicode page for it, it uses the default for checking if the character exists and getting the boundaries and the traffic packs version only gets used for getting the colors.

To modify the unicode font, you also need to edit glyph_sizes.bin.

Additionally, other fonts might take precedence over the unicode font for certain characters. You can change that in the font JSON file.

pama__

(Unassigned)

Unconfirmed

(Unassigned)

1.19.2

Retrieved