From af464546e101c46a42fb0b477a878ee955bba32a Mon Sep 17 00:00:00 2001 From: Lanius Trolling Date: Fri, 9 Sep 2022 08:24:01 -0400 Subject: [PATCH] Add support for Gothic alphabet --- src/main/kotlin/info/mechyrdia/lore/parser_tags.kt | 4 +++- src/main/kotlin/info/mechyrdia/lore/view_tpl.kt | 2 +- src/main/resources/static/style.css | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) 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; +} -- 2.25.1