Jump to content

Recommended Posts

Posted

This is really annoying me. I am attempting to add a new "runes" based font to the game, but I am really struggling to get it to work. It only adds a-zA-Z, but no matter what I try it just fails to render anything.

 

I am putting this at the top of my method (so I can change it easily) and, well, nothing renders (except for special characters, such as \20. But I didn't add those, so I am guessing Minecraft did.)

 

This is me attempting to create the font:

 

final FontRenderer runeFont = new FontRenderer(Minecraft.getMinecraft().gameSettings, FONT_TEXTURE_ASCII, Minecraft.getMinecraft().renderEngine, false);

Posted

It IS defined - and is a valid ResourceLocation. There is no log because there is no error - the font just wont render. I think it is something around creating fonts which I don't understand - maybe fonts require a special png format?

Posted

Wait - I just found font/glyph_sizes.bin. But what does this do? I can only see one of them - does it need to contain information about all the fonts? How can I add to this file?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.