/CustomFont-Rendering

Rendering of TrueType / OpenType fonts for new versions of Minecraft

Primary LanguageJavaMIT LicenseMIT

Custom Font for Minecraft 1.17+

This is just a port of the old Font-Rendering for the new version (1.17+)

Author: superblaubeere27

Ported: sprayD

The Original: Font Renderer

Example

(Fabric 1.17.1)

HudRenderCallback.EVENT.register((matrices, tickDelta) -> {
	IFont.CONSOLAS.drawString(matrices, "Consolas Font", 4, 4, Color.WHITE.getRGB());
	IFont.LEGACY.drawString(matrices, "Legacy Font", 4, 7 + IFont.CONSOLAS.getFontHeight(),
			new Color(113, 152, 184).getRGB());
});

Result

Just a Font