Fix fonts
authorLanius Trolling <lanius@laniustrolling.dev>
Mon, 13 Feb 2023 21:49:19 +0000 (16:49 -0500)
committerLanius Trolling <lanius@laniustrolling.dev>
Mon, 13 Feb 2023 21:49:19 +0000 (16:49 -0500)
src/main/kotlin/info/mechyrdia/lore/parser_tags.kt
src/main/kotlin/info/mechyrdia/lore/view_tpl.kt

index 9b4b3f2579b75603278ae9c15c3506abf9005be3..4337d4d8ac881c8c701528085e858581dde7450e 100644 (file)
@@ -73,13 +73,13 @@ enum class TextParserFormattingTag(val type: TextParserTagType<Unit>) {
        ),
        IPA(
                TextParserTagType.Direct(
-                       { _, _ -> "<span style='font-family: serif'>" },
+                       { _, _ -> "<span style='font-family: Noto Serif, serif'>" },
                        { "</span>" },
                )
        ),
        CODE(
                TextParserTagType.Direct(
-                       { _, _ -> "<span style='font-family: monospace'><pre>" },
+                       { _, _ -> "<span style='font-family: JetBrains Mono, monospace'><pre>" },
                        { "</pre></span>" },
                )
        ),
index ae47caae89fddba5d4d8e835195189fba7f1116a..72f5e2ee01d74cb605299a597dbfb1662c696329 100644 (file)
@@ -24,7 +24,7 @@ fun ApplicationCall.page(pageTitle: String, navBar: List<NavItem>? = null, sideb
                        
                        link(rel = "preconnect", href = "https://fonts.googleapis.com")
                        link(rel = "preconnect", href = "https://fonts.gstatic.com") { attributes["crossorigin"] = "anonymous" }
-                       link(rel = "stylesheet", href = "https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Sans+Gothic&family=Oxanium:wght@400;600;700;800&display=swap")
+                       link(rel = "stylesheet", href = "https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Sans+Gothic&Noto+Serif:ital,wght@0,400;0,700;1,400;1,700&JetBrains+Mono:ital,wght@0,500;0,800;1,500;1,800&family=Oxanium:wght@400;600;700;800&display=swap")
                        
                        link(rel = "stylesheet", href = "/static/style.css")