diff --git a/src/main/kotlin/gg/essential/elementa/components/UIWrappedText.kt b/src/main/kotlin/gg/essential/elementa/components/UIWrappedText.kt index e26601b6..3e88e4ab 100644 --- a/src/main/kotlin/gg/essential/elementa/components/UIWrappedText.kt +++ b/src/main/kotlin/gg/essential/elementa/components/UIWrappedText.kt @@ -178,7 +178,7 @@ open class UIWrappedText @JvmOverloads constructor( lines.forEachIndexed { i, line -> val xOffset = if (centered) { - (width - line.width(textScale)) / 2f + (width - line.width(textScale, getFontProvider())) / 2f } else 0f getFontProvider().drawString(