mojira.dev
MC-17673

Distorted fonts when using a converted texturepack on startup

When I start the game with a resourcepack that got created from converting a texturepack with TextureEnder (lol), the font everywhere in the game looks like in "screenshot-1". However when I start with the default resourcepack, everything's normal.

Changing the pack on runtime doesn't change anything.

How to reproduce:
1. Take a texturepack.
2. Convert it using TextureEnder (from Mojang blog post for 13w24a)
3. Move the converted resourcepack to the resourcepack directory in /.minecraft/
4. Start the game
5. Select the resourcepack
6. Restart the game
7. Start eating hotdogs because of frustration.

PS: This may only happen if that texturepack has a custom font ❓

Related issues

MC-17697 Weird Font Gltich With Resource Packs MC-17735 Resource convertion problems and main screen text problems MC-17759 English Language not displaying correctly MC-17770 When changing resource packs fonts get messed up. MC-17791 Font messes up with Resource pack MC-17792 Text is jumbled when Minecraft is launched with texture pack selected MC-17800 Text unreadable MC-17834 If a resource pack is already chosen on launch, the font in game will be illegible. MC-17860 Resoursepacks and Snapshot MC-17898 After used a resourcepack (That got turned on while a MC-17831 crash) with custom font all normal (Also resourcepack affected) text will have too short texture. (Also happens while using the resource pack after a MC-17831 crash) [13w24b] MC-17946 Text Glitch MC-17950 Text messed up MC-18005 Starting the game with HD pack breaks the text MC-18032 changing Resources packs and letters are weird MC-18086 GUI is scrambled/Text is overlaid with the same text with shifted to the right making menu indiscernible. MC-18106 When I opened the main minecraft screen, all the letters were all jumbled up MC-18111 When I try to use the John Smith Legacy resource pack, the text is all garbled and the game is unplayable MC-18153 Resource Pack Bug "Unresolved" MC-18176 words all jumbled up MC-18206 Resource packs don't work... MC-18212 Resource Pack Loading error?(edit: Duplicate of MC-17673) MC-18241 When I select English all of the letters mix together MC-18253 Nice Texturepack Display Bug MC-18279 If your using a resource pack with custom font and then restart the game the font will look wrong. (Like in the 13w24b after a crash) MC-18302 Text looks weird MC-18307 When logging on with resource pack text is screwed up... MC-18344 Mysterious Font with and without a Resource Pack MC-18390 Text getting very buggy MC-18400 Minecraft Text Corruption MC-18464 Font messed up after switching a resource pack MC-18586 Restarting Minecraft in a resource pack will cause jumbled text. MC-18587 Resource pack text bug MC-18623 Text error/glitch MC-18650 Font problem when you restart the launcher MC-18669 All the font/text gets all wierd MC-18863 text texture bug MC-18872 When I start the game in the DEV Launcher, All game and main menu text looks like foreign language MC-18931 Launcher crashed when I downloaded new launcher MC-19016 Text Squished Together MC-19022 name and text error MC-19088 Running Minecraft With Resource Pack MC-19102 Text is unreadable MC-19126 TexturePack / Resource Pack and HorseShadow BUG MC-19134 Text bug with ressource pack MC-19139 A few problems with resource packs MC-19186 Texts become hard to read after using converted texture packs MC-19203 Text bug MC-19261 Font bug when I start Minecraft with a ressource pack with a custom font. MC-19296 screen disfigured with languages MC-19325 glitched overlaping letters MC-19332 Using wrong font on blocks, items, menus, etc. MC-19352 When started, ALL the words were disoriented, however, a recourcepack was on startup.then it fixed with the default pack on reset MC-19367 Minecraft Language Selector: English MC-19400 Custom 32x32 text in 16x16 format on restart MC-19442 Any English language does not work. MC-19459 Fonts visual glitching MC-19516 After using the TextureEnder.jar to convert my texture pack I used it once, then after I quit and reloged all of the text was misaligned! Even when I went into normal textures it was that way. Hope you see this and fix before the release! MC-19549 Bug police with the English language MC-19579 Today (28/06/13) and before MC-19609 Text bug MC-19634 Font issue after converting texture packs MC-19696 when logging in with texturepack enabled font goes all screwy MC-19705 Text gets messed up MC-19713 font is broken MC-19715 Bug minecraft Texture Ender for Ressource Pack MC-19762 Resource Pack Font Glitches MC-19788 text on splash screen and in game is garbled MC-19812 HD fonts are displayed incorrectly the second time you launch minecraft. MC-19833 Text Displays Wrong with Resource Pack MC-19851 All Text In Minecraft Is Going Haywire MC-19895 Resource Packs Break fonts MC-19896 Font messed up + some animations broken MC-19897 Bugged text MC-19932 Text went all freaky MC-19935 ALL TEXT mixed and screwed up MC-20006 Using a resource pack at launch, makes english text get spaced weirdly. MC-20071 Resource Pack Bug NOT FIXED! MC-20097 Lanching game with resourcepack on messes up text MC-20114 Text problem in Ressources pack changements MC-20118 Text problem in Ressources pack changements MC-20147 Font rendering messed up MC-20162 Minecraft Font Smudge MC-20166 Text on title page went wierd MC-20215 HD text becomes jumbled upon restart of client! MC-20279 text throughout the game is bugged MC-20298 Words are Garbled when launching the game with a texture pack of x64 or greater. MC-20309 Resource Pack MC-20348 Text Bug with Resource Packs MC-20360 Random punctuation marks are disrupting all game text MC-20378 Language Change MC-20449 Resource Pack's. MC-20464 Minecraft 1.6 Resource PackText Issue MC-20526 Starting up with custom fonts bugs out text. MC-20600 Most languages not working MC-20601 English Text Glitches Out MC-20656 Crazy unreadable text MC-20697 Font bug MC-20730 Text scrambled when launching Minecraft while using resource pack MC-20782 jumbled text for names and links in 1.6 MC-20839 English is not English. MC-20866 Language MC-20876 On startup of the game, lettering is messed up at title screen and in game MC-20886 letters MC-20958 Fonts not loading properly if using resource pack MC-21063 my english us language is screwed up bad MC-21149 Any text gets scrambled MC-21229 Text does not load properly with HD fonts MC-21240 What I expected to happen was to change the language to English but instead I got a pixelated letters that aren't real. MC-21296 Broken Text After Resource Pack Switching MC-21313 Wrong placement of letters MC-21356 Text/font bug MC-21451 Whenever I refresh my minecraft after adding a texture pack, my text is all messed up. Heres a picture: http://prntscr.com/1dc1kw MC-21502 Text Size MC-21516 Text Glitch MC-21525 Font is broken in client MC-21569 Typography is not spaced correctly, making it illegible. MC-21867 Scrambled text MC-21887 Weird wording for everything MC-21931 Text not displayed properly for converted resource pack MC-21958 Fonts don't display properly MC-21988 When someone have an HD resource pack and use it then exit mc then re-enter it there will be a font bug and if he/she uses the default resource pack the font bug stays. MC-22022 glitching characters MC-22134 The English (UK) text is changed to weird symbols MC-22179 words jumbling the letters MC-22340 local Global Language messed up and not readable MC-22461 Fonts are messed up MC-22504 Wierd text in game startup MC-22512 disorted fonts with converted Recource packs MC-22549 Text Corrupt After Exiting Game MC-22562 Custom Fonts won't work... MC-22640 HD Fonts appear misaligned MC-22725 Title Screen Letter Bug MC-22860 Inverted text?? What is going on... MC-22901 what happens some times is that I launch the game and the font gets all screwed up and then i have to restart my game multiple times before the font go's back to normal. MC-23017 Major text issue MC-23151 Fonts messed up after using a custom resource pack font MC-23427 Language Problem MC-23514 ressource pack MC-23595 No support for unicode font edditing in resource packs MC-23689 Improperly displayed text on resource pack switching MC-23700 Resource Packs MC-23745 Resource pack issues MC-23960 Minecraft 1.6.2 Custom Fonts don't display properly MC-23973 My chat MC-24032 Text glitch, text comes up all wierd MC-24077 When I try playing the 1.6.1 version all the letters are mashed up on the game making it impossible to read anything but the runner is fine. MC-25638 Weird Minecraft "text" ( letters ) MC-25722 whenever I log into minecraft 1.6 the text is al scrambled and broken MC-26881 The letter that have been typed are, uh... messed up? MCL-982 Minecraft text is jumbled and spacing is all off MCL-1054 Text Glitch MC-17832 Font Glitch w/ Resource Packs MC-20846 Bug of an letter

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media]
Erik Broes

Not a bug.

Until we add font properties you cannot fix this. They haven't yet been finished.

migrated

Okay then.
Good guy Erik.

ysl3000

Ender.jar Converter isn't working on Mac OS X

_zombiehunter

@Grum:
But this >>> MC-17729 should not happen, right? Default-shaped fonts should work without the properties file, or not?

Erik Broes

No, perfectly aligned defaultsized fonts will display properly.

There is no support for any 'high res fonts' nor will any automatic tool we make ever output 'correct data' to dispay them.

migrated

you have to add all the files from : C:\Users\YOU\AppData\Roaming\.minecraft\versions\YOURVERSION\YOURVERSION.jar\assets\minecraft\textures\font
to
C:\Users\YOU\AppData\Roaming\.minecraft\resourcepacks\YOURRESOURCEPACK\assets\minecraft\textures\font
they use the normal fonts but its better than nothing

_zombiehunter

@Niklas:
That does not make sense. You could simply delete all fonts from your resource pack, Minecraft automatically uses the default fonts if there are no fonts available in your resource pack. But yes, at least it makes stuff readable again.

@Grum:
Any progress update on the fonts? Still crazy hieroglyphes in 13w25c ... :-b

migrated

I've found that I can get a converted 32x texture pack to work on the first load without distorting the fonts. However, after closing and re-opening MineCraft, the glitch shows up again, even with the default pack. The workaround for me has been to delete any resource packs found in the resource pack folder before opening MineCraft, then copy over the converted hi-res pack to the proper folder, then select it within MineCraft, and it works just fine.
Because of this behavior I'm questioning what Grum has said about this not being a bug, since the hi-res fonts do in fact work after jumping through some hoops.

migrated

I'm having the same issue.

The resource pack font loads fine but the font is messed up the next time you start Minecraft, if you select the Default pack the font is still messed up, restarting has no effect unless you restart when you have the Default pack selected.

The work around I've found that works is to select the Default pack, exit the game.

Restart the game again and the font will be correct again in game.

Then you can select a Resource pack again and the font will be fine until you restart the game again then it will be messed up.

migrated

Yeah the same here as the poster above, i use 256x texpacks for my server, and i converted it to a resource-pack, and loaded it fine the first run! - the second time i started minecraft though, the fonts were broken (cannot be read as heavily misaligned as they are)

  • and switching back to default (vanilla) does not work, the fonts remain dis-aligned and un-readable.

I will try the work-round with having default at game-start.

But i do hope the actual issue where it does not reload the default font after having selected another resource-pack previously, get's fixed : )

/PReP

_zombiehunter

@Grum:
Any progress on the fonts? Or do you plan to release 1.6 with an unfinished resource pack system?

Erik Broes

It's working perfectly fine. We might add the extended font feature later.

_zombiehunter

Later? 😞 So it's up to Kahr again to make custom fonts work in 1.6 ...
Without the font feature, resource packs are incomplete to me (and I'm sure every texture artist using custom fonts in his/her pack will agree with this). Does it really take that long to add a properties/metadata file to let us define the font widths?

Erik Broes

Now I will wait an additional 2 weeks. happy?

migrated

Do you guys realize that (at least in my testing) HD fonts work perfectly well, as long as the game doesn't try to start up with them?

It seems that the interface only goes berserk if the Resource Pack that the game loads up with (i.e the last Pack you used before you quite MC) has an HD font. It seems to work find if you select a pack with an HD font after you launch MC-- and will work fine next time as long as you switch to a non-HD font pack before you quit.

Perhaps the quick fix would be to use the default font when MC launches no matter what pack is selected.

_zombiehunter

I just quote a part of the tickets description:

"7. Start eating hotdogs because of frustration."

migrated

This problem still occasionally happens for me on the latest snapshot, but I figured out a way to fix this one my computer, not sure if it will work for others.

1. Switch texture pack to default.
2. Close and relaunch Minecraft.

I've been able to do this multiple times with success. I can even switch the texture pack back to a custom one after that and it will look fine.

Erik Broes

The proper fix for the code takes a bit longer to finish. I've hacked in a workaround for now.

Result in the 'sphax' screenshot.

PS: The extra space in Sphax is because there is extra 'spacing-garbage' in the images.

migrated

Thanks a lot Grum! I assume by garbage you mean extra pixels in front of the letter images? Will a mcmeta file be needed for this fix?

Erik Broes

No, it seems the author of Sphax just added some extra artificial spacing to perhaps combat some other problem. He can stop doing that now 😉

_zombiehunter

The extra spacings are an old relict of a time where MCPatchers HD Font mod wasn't able to properly handle the spacings between characters, many texture artists added this "spacing-garbage" to their font as a workaround. After Kahr fixed that and additionally added support for font widh properties (about a year ago), this became obsolete. Sphax obviosly forgot to delete them.
Anyhow ... the new screenshot looks ... promising 🙂

migrated

Grum: "The proper fix for the code takes a bit longer to finish. I've hacked in a workaround for now"
Why not just reuse the font code from texture packs? HD fonts work fine in 1.5.2 (WITHOUT optifine if you're wondering)

also grum if you see this, since i have no other way to contact you and the following is not really a bug, i will tell you here. sorry for off-topic stuff.
the watercolor.png colormap appears to be missing in 1.6.1, not in the colormaps folder, not in the misc folder where it used to be. please re-add it!

migrated

grum the english language UK is still distorted even when using the default resorcepack
😞
ive added an atachment it is the default background but the sphax spacing ???

_zombiehunter

@Conor McS:
Why should he re-add the old code after he found a working compromise to the current one? Does not make sense to me 😛
About the watercolor stuff: Yep, that's a bit off-topic here, but FYI: watercolor.png was never used in vanilla, so it's not missing. Would be nice to have working water and underwater color maps in vanilla though (or the whole Custom Colors stuff in general).

kumasasa

@jason gillam-wright: This bug is fixed for 1.6.2 not for 1.6.1

migrated

Re-install minecraft.
re-select your HQ texture pack with its great font.

It work work correctly the first time you select a resource pack. its only after you exit and re-enter that it has a problem.

very strange that it can work fine the first time, and only has an issue after you restart.

there has to be a simple folder you can replace every time (until the issue is resolved)

migrated

If you switch to the default texture pack before exiting, you won't have to re-install like it says above or anything.

migrated

Use pirate english if you remember where everything is, that is fixed, for now we will have to wait for 1.6.2/ 1.7

migrated

If you want it not to affect you...first boot into original....quit....next open the resourcepack folder... use like 7zip, WinRAR to delete in the texture folder the fonts folder, if you see any other folder locations saying font delete that as well.... Then every time you load minecraft you'll have default fonts with your favorite texture/resource pack. I'm looking forward to 1.6.2 where they've fixed this.

Erik Broes

@Conor McS Add it because it did nothing? nope!

The file wasn't used and therefor purged.

migrated

I seem to still have this issue.

EDIT: Image right here (Sorry if there is a way to upload it on here. I don't use this website to often.): http://i.imgur.com/GEgcKhk.png

migrated

HD fonts still are broken for me, but they are broken differently. Now they are always broken, and the spacing is different.

Is there some sort of .mcmeta file needed to make this work?

EDIT: this is in reference to the 1.6.2 snapshot

Erik Broes

John W Bjerk: please attach the resource you are using.

That goes for everyone btw, without data I cannot fix it 🙂

migrated
migrated

A problem with HD font is still occurring for me on 1.6.2, however, instead of going hieroglyphic, my font simply expands compared to default. It is more tolerable, but still annoying.

Examples:
Default: http://imgur.com/BNZ9wer
High Def: http://imgur.com/wgPjnUh

Resourcepack: https://www.dropbox.com/s/c4rgsyhgpvci74o/%5B64x%5D%5B1.6.x%5D%20Affinite%27s%20Faithful%20%2B%20Better%20Rain.zip

Erik Broes

@John W Bjerk: in your case the texture has non-0 alpha values (0x03 to be exact) where it should be zero, so every glyph gets seen as max-width. (now there is a little rendering error, so it renders a little bit of the 'next' glyph too, which is what causes the weird lines)

@Ryan Sims
Your font is actually the same as the Sphax one and it has extra 'spacing' after each letter that is 'almost invisible' though not invisible for my code. Remove the spacers and it looks good.

_zombiehunter

Default-shaped HD font works absolutely fine in 1.6.2, no problems with spacings on my side. Thanks Grum 🙂

migrated

What does "non-0 alpha values" mean? I have a also a few stray characters that i can't get rid of no matter what i try.

Edit: Duh, got it - anything else than pure white and opaque will cause errors. Thanks, works perfectly! http://i.imgur.com/MY0lamv.png

Erik Broes

Excellent, my code seems to indeed work as it should. I'll commit the little fix for the 'max-width-glyphs' over-rendering by a pixel.

For all people seeing this thread and thinking the spacing of the letters is broken for HD fonts.

Please make sure that:

  • You start each letter touching the left size of the square it sits in

  • You ensure the pixels you do not want to see are black and have an alpha channel value of 0.

And keep in mind, as it is a 'hack', the width of the character will be calculated from how many columns have pixels in it. However the internals work on a 0-8 integer scale so we need to round the resulting number to the nearest integer, this might cause some spacing issues but it should be significantly less than before.

If you feel there is still a bug, attach the ascii.png to this ticket -- and prepared to be angrily glared at if the data contains 'weird values' in the alpha channel 😉

migrated

Not only the transparency is important, it seems also important that the visible pixels have to be pure white.
My font had a very light yellow tint (artistic reason, not a mistake), this caused problems - seems that the boundaries weren't detected properly anymore (as you mentioned already).

Not a complaint! I just felt like adding this to your list. 😉

Erik Broes

Actually the code checks for the ARGB-hex value to be non-0.

So yes, do not leave ANYTHING in the pixels you want empty.

migrated

OK, i guess i'm going to risk a dev glare.

I've tried multiple methods, any one of which should have removed non-zero transparency values. The font still goes glitchy in the same way. To the best of my knowledge it mets the other requirements.

http://www.mediafire.com/download/e7o0l39skqf3uxx/ascii.png

migrated

Grum, I was wondering if you'd be able to check my ascii. http://www.mediafire.com/?5u1vhd9umvb4qcx

EDIT: Managed to fix it myself when poking in the files. Thanks for the help!

Erik Broes

@John W Bjerk: your transparant areas are white, not black 😃

migrated

Grum: Gotcha, thanks, that works.

migrated

For anyone that's not sure if they're transparent areas are black, be sure by coloring the background black then erasing it.

migrated

So I'm trying to edit my unicode font, have read the whole issue but still I am not able to correctly edit this file.
https://dl.dropboxusercontent.com/u/15788493/Temp/unicode_page_00.png
Alpha channel is i think 0 but I didn't quite understood how to make it.
At this moment they look like this:
https://dl.dropboxusercontent.com/u/15788493/Temp/3.png

Any idea? Is the unicode supported?

kumasasa
Erik Broes

Actually updated the 1.6.2 jar. Now the only rule it goes by is: if a pixel is 100% transparant (0x00 in alpha field) it is considered transparant regardless of colour.

_zombiehunter

@Grum:
http://i.imgur.com/8ELGI9T.jpg - the new stylish appearance of italic font isn't intended, right? Mind to take a look at MC-23928? Thanks !

migrated

Erik Broes

Confirmed

font, text

Snapshot 13w24a

Minecraft 1.6.2

Retrieved