[MCPE-17686] [Fixed] Spacing Issues When Adding Custom Fonts Created: 26/Oct/16  Updated: 26/Apr/17  Resolved: 07/Apr/17

Status: Resolved
Project: Minecraft (Bedrock codebase)
Component/s: None
Affects Version/s: 0.16.0, 0.16.1, 0.17.0.1, 0.17.0.2, 0.16.2, 1.0.0.0, 1.0.0.2, 1.0.0.7, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4.0, 1.0.4.1, 1.0.4.11, 1.0.5.0, 1.0.5.11, 1.0.6.0, 1.0.5.54, 1.1.0.0
Fix Version/s: 1.1.0.1

Type: Bug
Reporter: Lukas Voigts
Resolution: Fixed Votes: 13
Labels: add-on, font, resource-pack

Attachments: PNG File font_bug.png     PNG File font_bug0.png    
Issue Links:
Duplicate
is duplicated by MCPE-17913 Wrong calculation of letter width in ... Resolved
Confirmation Status: Confirmed
Platform: Windows
CHK:
ADO: 50147

 Description   

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.



 Comments   
Comment by Lukas Voigts [ 07/Apr/17 ]

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

Comment by [Bot] Arisa [ 17/Mar/17 ]

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

Comment by [MCPE Helper] Aspergerian [ 10/Feb/17 ]

Affects 1.0.3.

Comment by Shoe boxam [ 22/Jan/17 ]

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.

Comment by [MCPE Helper] Aspergerian [ 10/Jan/17 ]

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).

Comment by [MCPE Helper] Aspergerian [ 08/Dec/16 ]

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

Comment by [MCPE Helper] Aspergerian [ 21/Nov/16 ]

Currently affects 1.0 Beta Build 2.

Comment by [MCPE Helper] Aspergerian [ 08/Nov/16 ]

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

Comment by [MCPE Mod] Celesian [ 29/Oct/16 ]

can also confirm this on android when trying a x64 font

Generated at Sat Jan 11 15:16:25 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.