mojira.dev
MC-10426

Custom fonts do not display properly

Periods and exclamation marks do not show in the game. This affects only HD custom fonts.
To reproduce: use texturepack with HD font, and note whether periods and exclamation marks show or not.

Linked issues

Attachments

Comments 45

Can you please upload said font?

Still present in 13w09c.

The problem appears to happen with any font that is not the default 128x128. I've attached another screenshot showing Misa's font.

FontRenderer (awp.class in 13w09c) seems to assume that each character is 8x8 when computing character widths.

+merlan #flirora

So exactly what is displayed incorrectly in your screenshot.

Attached a second screenshot: same font but using MCPatcher's HD Font patch instead.

+merlan #flirora

So the spacing is incorrect?

35 more comments

@Grum:
Just good to know you're working on it ๐Ÿ™‚
And yes, it's always good to consider other ways to implement something. MCPatcher is a standard for texturepacks for some years now, which doesn't mean there isn't a better way to implement a feature. In addition to all the "Custom fonts do not display properly" stuff, the real problem is still the lack of many other commonly used texturepack features in vanilla Minecraft (Animation Support for all textures, RandomMobs, Custom Colors, CTM, Custom Skyboxes, ...). Have you ever compared Misa's texturepack (or any other full featured pack) with vanilla Minecraft and with patched Minecraft? The visual difference is mind-blowing ... and millions of players still have to rely on MCPatcher/Optifine to enjoy this. Wouldn't it be a good time to finally add more texturepack features along with all the rendering changes?

Yoann Petremann

To the pros and cons, I think that a properties file is a bit "heavy" and the way /font/glyph_sizes.bin work seem to be "perfect", so why not use a default_sizes.bin and alternate_sizes.bin to let us customize font size (so accepted in texture packs) (2kb with properties files, 256b with default_sizes.bin) and easy to edit with an HEX editor (notepad++ has one integrated)

+merlan #flirora

Doibg so would assume that the resolution for each character would be at most 256 pixels.

Since the introduction of resource packs, no change will be made at texture packs.

@Everyone:
For further discussion on fonts, see MC-17673.
Custom fonts should work after the implementation of metadata for fonts ...

+merlan #flirora

Erik Broes

Community Consensus

rendering

Snapshot 13w09a, Snapshot 13w09b, Snapshot 13w09c, Snapshot 13w10a, Minecraft 1.5, ..., Snapshot 13w17a, Snapshot 13w18c, Snapshot 13w19a, Snapshot 13w21a, Snapshot 13w21b

Retrieved