Jump to content

[1.16.4] Custom Font Rendering


exokem

Recommended Posts

I'm trying to create a custom font that can be rendered in a gui in the same way that the vanilla font is (fontrenderer#drawString).

I have created the font json and the font png, but I have not been able to figure out how to use the font for rendering. I do not know what needs to be registered or where in order for the font to work as intended. 

Currently have the following: https://hatebin.com/ezgkaaacvq

But this does not work, and I don't know if it is remotely correct. I have been able to see that my font has been loaded by the default FontRenderer but I can't actually use it. I don't know how it can be accessed or how I can assign it to a FontRenderer.

Edited by exokem
Link to comment
Share on other sites

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.