mojira.dev
MC-157207

Game now ignores resource pack .ttf fonts with capital letters in their filename.

Game no longer recognizes .ttf style fonts with capital letters in their file name.

EDITED REPORT:

I originally reported Minecraft was ignoring ttf and otf type fonts, but after playing with the files, I realized the file names had capital letters in them, which prior to 1.14.4 were acceptable, but now no longer are. Simply renaming to font files to have no capital letters solved the issue.

I now suspect this works as intended... although datapack makers will have to check the font files they are pointing to in order to ensure the case-sensitive names have no caps.

Related issues

Comments

violine1101

which prior to 1.14.4 were acceptable, but now no longer are.

I'm pretty sure that's not the case, see MC-135110. If you use such a ttf file, does the game crash as well, or does it just not load the font? Are there any error messages in the log?

Gatinh0

Hi violine1101,

To begin... it definitely allowed caps before 1.14.4. What caused me to discover this change is my resourcepack named GatPack, which has almost 2,000 users. When 1.14.4 dropped, I was flooded with people asking where the font went, which caused me to find out why the font was no longer loading. The fix that worked was taking out the capital letters in the font name... which was Chunkfive.otf to be specific. I even tested this with other fonts that I had, and ArialBold.ttf also had to be renamed to arialbold.ttf. This made the fonts work as intended.

If you used a ttf otf file with a capital letter in its name, there was no crash or error... it simply didn't load the font. My minecraft/logs from that period 2019-07-20 notes this error log regarding loading the font:

[09:52:22] [Server-Worker-3/WARN]: Unable to read definition 'minecraft:default' in fonts.json in resourcepack: 'GatPack': Non [a-z0-9/._-] character in path of location: minecraft:Chunkfive.otf

For what it's worth... it looks like Optifine for 1.14.4 tweeks it so that capital letters in font names will still work... apparently as a fix for all their users wondering where their resourcepack fonts went with 1.14.4 as well.

violine1101

Just checked. 1.13.2 didn't accept capital letters in font files either. Resolved as a duplicate of MC-135110.

Rule of thumb: Never use capital letters in resource or data packs.

Gatinh0

(Unassigned)

Unconfirmed

(Unassigned)

1.14.4

Retrieved