From: Lanius Trolling Date: Sun, 31 Dec 2023 18:04:44 +0000 (-0500) Subject: Remove special Gothic font X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=3e6628b8c225504cb266d71cb573dba8c58c819d;p=factbooks Remove special Gothic font --- diff --git a/src/jvmMain/kotlin/info/mechyrdia/data/views_comment.kt b/src/jvmMain/kotlin/info/mechyrdia/data/views_comment.kt index 89bb037..96f64bd 100644 --- a/src/jvmMain/kotlin/info/mechyrdia/data/views_comment.kt +++ b/src/jvmMain/kotlin/info/mechyrdia/data/views_comment.kt @@ -522,17 +522,6 @@ suspend fun ApplicationCall.commentHelpPage(): HTML.() -> Unit = page("Commentin } } } - tr { - td { +"[lang=gothic]\uD800\uDF32\uD800\uDF3F\uD800\uDF44\uD800\uDF39\uD800\uDF43\uD800\uDF3A\uD800\uDF30 \uD800\uDF42\uD800\uDF30\uD800\uDF36\uD800\uDF33\uD800\uDF30[/lang]" } - td { - +"Writes text in the Gothic alphabet: " - span(classes = "lang-gothic") { - +"\uD800\uDF32\uD800\uDF3F\uD800\uDF44\uD800\uDF39\uD800\uDF43\uD800\uDF3A\uD800\uDF30 \uD800\uDF42\uD800\uDF30\uD800\uDF36\uD800\uDF33\uD800\uDF30" - } - br - +"Requires the Unicode Gothic alphabet; Latin alphabet characters are not supported." - } - } } } } diff --git a/src/jvmMain/kotlin/info/mechyrdia/lore/parser_tags.kt b/src/jvmMain/kotlin/info/mechyrdia/lore/parser_tags.kt index 7f1d524..d324c50 100644 --- a/src/jvmMain/kotlin/info/mechyrdia/lore/parser_tags.kt +++ b/src/jvmMain/kotlin/info/mechyrdia/lore/parser_tags.kt @@ -317,9 +317,7 @@ enum class TextParserFormattingTag(val type: TextParserTagType) { val pokhwal = PokhwalishAlphabet.pokhwalToFontAlphabet(uncensored) val recensored = TextParserState.censorText(pokhwal) "$recensored" - } else if (tagParam?.equals("gothic", ignoreCase = true) == true) - "$content" - else content + } else content } ), ALPHABET( diff --git a/src/jvmMain/kotlin/info/mechyrdia/lore/view_tpl.kt b/src/jvmMain/kotlin/info/mechyrdia/lore/view_tpl.kt index 5260aac..e782e81 100644 --- a/src/jvmMain/kotlin/info/mechyrdia/lore/view_tpl.kt +++ b/src/jvmMain/kotlin/info/mechyrdia/lore/view_tpl.kt @@ -15,7 +15,6 @@ val preloadFonts = listOf( "JetBrainsMono-ExtraBoldItalic.woff", "JetBrainsMono-Medium.woff", "JetBrainsMono-MediumItalic.woff", - "NotoSansGothic-Regular.woff", "Oxanium-Bold.woff", "Oxanium-ExtraBold.woff", "Oxanium-Regular.woff", diff --git a/src/jvmMain/resources/static/font/NotoSansGothic-Regular.woff b/src/jvmMain/resources/static/font/NotoSansGothic-Regular.woff deleted file mode 100644 index b042098..0000000 Binary files a/src/jvmMain/resources/static/font/NotoSansGothic-Regular.woff and /dev/null differ diff --git a/src/jvmMain/resources/static/style.css b/src/jvmMain/resources/static/style.css index e4fd7e8..24497e4 100644 --- a/src/jvmMain/resources/static/style.css +++ b/src/jvmMain/resources/static/style.css @@ -1,9 +1,3 @@ -@font-face { - font-family: 'Noto Sans Gothic'; - font-display: block; - src: url("/static/font/NotoSansGothic-Regular.woff"); -} - @font-face { font-family: 'JetBrains Mono'; font-style: normal; @@ -116,6 +110,8 @@ html { --media-size-unit: 0.035vw; + --aside-width: 40%; + /*************** * color params * ***************/ @@ -837,10 +833,6 @@ iframe { text-align: center; } -.lang-gothic { - font-family: 'Noto Sans Gothic', sans-serif; -} - @font-face { font-family: 'Tulasra'; src: url(/static/font/tylan-language-alphabet-3.woff) format('woff');