mojira.dev
MCPE-17686

[Fixed] Spacing Issues When Adding Custom Fonts

Update: This issue is no longer present in the current 1.1.0.1 Beta. It's fixed.

When adding custom fonts (the default8.png file) that is larger than 128x128 pixels, the game will load it correctly, but then after about 3-10 seconds the game will put large amounts of spacing between letters. (See the attached screenshots).

It should load fine and have no spaces, but somehow it puts large spaces between the letters. This has been reproduced all on my iPad, Samsung Galaxy S6, and Windows 10 PC. The screenshots were on Windows 10.

If you would like to reproduce this:
1. Make a new texture pack.
2. Add a default8.png file larger than 128x128 pixels (I used 256x256 in the screenshots) and put it in the fonts folder.
3. Load the game and watch what happens.

I'm trying to port Faithful 32x and this keeps happening to me.

Also, some useful information: This bug never seemed to happen in the first 0.16.0 beta, when the resource pack formats were different.

Linked issues

Attachments

Comments 9

can also confirm this on android when trying a x64 font

Confirmed on Samsung Galaxy Note 5 (custom font/texture for buttons, icons, numbers, and words become distorted if higher than x16 resolution).

Currently affects 1.0 Beta Build 2.

Affects Beta Build 4 (default8.png re-appears, but doesn't really function).

Affects 1.0.0/1.0.1 (it seems that custom font with 32x32 resolution or higher gets bugged out. 16x16 custom font seems fine though).

I've done some testing with the kerning. On any custom font of any size, resize it to 128x128 and place it in the top left corner. This fixes kerning because kerning is calculated from this fixed area of the sprite sheet. Load the game, and fix any remaining kerning issues by adding or removing a pixel from the corresponding kerning tile.

Ideally, also resize the entire font file to be 2048x2048 so that the kerning fits inside the empty tile in that top left corner.
You can also reduce the opacity to 1%.

I would still prefer the font kerning be calculated from scaled coordinates over the entire sheet- because the kerning resolution is only 16x. However, this provides a workaround and gives some insight to the bug.

Please do not mark unreleased versions as affected.
You don't have access to them yet.

This issue seems to be fixed in the latest PE beta.

lukas4460

(Unassigned)

50147

Confirmed

Windows

add-on, font, resource-pack

0.16.0, 0.16.1, 0.17.0.1, 0.17.0.2, 0.16.2, ..., 1.0.5.0, 1.0.5.11, 1.0.6.0, 1.0.5.54, 1.1.0.0

1.1.0.1

Retrieved