From: Lanius Trolling Date: Fri, 9 Sep 2022 12:24:01 +0000 (-0400) Subject: Add support for Gothic alphabet X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=af464546e101c46a42fb0b477a878ee955bba32a;p=factbooks Add support for Gothic alphabet --- diff --git a/src/main/kotlin/info/mechyrdia/lore/parser_tags.kt b/src/main/kotlin/info/mechyrdia/lore/parser_tags.kt index 2ca56d1..63483f1 100644 --- a/src/main/kotlin/info/mechyrdia/lore/parser_tags.kt +++ b/src/main/kotlin/info/mechyrdia/lore/parser_tags.kt @@ -267,7 +267,9 @@ enum class TextParserFormattingTag(val type: TextParserTagType) { val tylan = TylanAlphabet.tylanToFontAlphabet(uncensored) val recensored = TextParserState.censorText(tylan) "$recensored" - } else content + } else if (tagParam != null) + "$content" + else content } ), ALPHABET( diff --git a/src/main/kotlin/info/mechyrdia/lore/view_tpl.kt b/src/main/kotlin/info/mechyrdia/lore/view_tpl.kt index b0dc6b9..22aa21e 100644 --- a/src/main/kotlin/info/mechyrdia/lore/view_tpl.kt +++ b/src/main/kotlin/info/mechyrdia/lore/view_tpl.kt @@ -24,7 +24,7 @@ fun ApplicationCall.page(pageTitle: String, navBar: List? = 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=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&family=Oxanium:wght@400;600;700;800&display=swap") link(rel = "stylesheet", href = "/static/style.css") diff --git a/src/main/resources/static/style.css b/src/main/resources/static/style.css index 09e1f78..fc410bb 100644 --- a/src/main/resources/static/style.css +++ b/src/main/resources/static/style.css @@ -654,3 +654,7 @@ textarea.lang-tylan { font-size: 2.5em; line-height: 1.0; } + +.lang-gothic { + font-family: 'Noto Sans Gothic', sans-serif; +}