From 5bf0b6c7ba4c5d35f93e875542842ae32277166a Mon Sep 17 00:00:00 2001 From: Lanius Trolling Date: Mon, 19 Feb 2024 10:50:08 -0500 Subject: [PATCH] Fix comment --- src/jvmMain/kotlin/info/mechyrdia/lore/fonts.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jvmMain/kotlin/info/mechyrdia/lore/fonts.kt b/src/jvmMain/kotlin/info/mechyrdia/lore/fonts.kt index 6e27efa..701ccb1 100644 --- a/src/jvmMain/kotlin/info/mechyrdia/lore/fonts.kt +++ b/src/jvmMain/kotlin/info/mechyrdia/lore/fonts.kt @@ -91,7 +91,7 @@ object MechyrdiaSansFont { if (line.isNotBlank()) { val x = (width - fontMetrics.stringWidth(line)) * alignAmount - // Mechyrdia Sans only supports the Latin and Cyrillic alphabets, so we can ignore bidirectional text + // Mechyrdia Sans only supports left-to-right scripts, so we can ignore bidirectional text val glyphs = font.layoutGlyphVector(g2d.fontRenderContext, line.toCharArray(), 0, line.length, Font.LAYOUT_LEFT_TO_RIGHT) val textShape = glyphs.outline as GeneralPath -- 2.25.1