Renderer
Renderer copied to clipboard
Why my text looks like shit? What I need to do?
val font = Font("Manrope", Font.PLAIN, 8)
val customFont = FontRenderer(font, 8f)
// Draw text
customFont.drawCenteredText(
ctx.matrices,
Text.of(displayText.string),
textX,
textY,
1f
)
I think somewhere between 1.20 and 1.21.4 text renderer implementation got a few bugs while other bugs were fixed. This didn't used to render like that
yeah i tried to make it smarter but made it retarded for some use cases in the process. you can copy paste an older version from this repo for a quick fix while i try to find the time to make it proper
use new font system, it's done