Fix comment
authorLanius Trolling <lanius@laniustrolling.dev>
Mon, 19 Feb 2024 15:50:08 +0000 (10:50 -0500)
committerLanius Trolling <lanius@laniustrolling.dev>
Mon, 19 Feb 2024 15:50:14 +0000 (10:50 -0500)
src/jvmMain/kotlin/info/mechyrdia/lore/fonts.kt

index 6e27efa0bc8f9073430623ef607849a6124c8e3c..701ccb1da9f85167000c94332706e3fd27f74d90 100644 (file)
@@ -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