From: Lanius Trolling Date: Mon, 19 Feb 2024 15:50:08 +0000 (-0500) Subject: Fix comment X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=5bf0b6c7ba4c5d35f93e875542842ae32277166a;p=factbooks Fix comment --- 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