Renderer icon indicating copy to clipboard operation
Renderer copied to clipboard

Why my text looks like shit? What I need to do?

Open awalki opened this issue 9 months ago • 2 comments

Image

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
)

awalki avatar Feb 12 '25 19:02 awalki

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

AquaMinerale2b2t avatar Feb 27 '25 09:02 AquaMinerale2b2t

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

0x3C50 avatar Feb 27 '25 12:02 0x3C50

use new font system, it's done

0x3C50 avatar Mar 25 '25 23:03 0x3C50