From a58d4faad99e23a15acb8159e4694c07f88eee8e Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Wed, 1 Jul 2020 16:55:29 +0200 Subject: Use font from CDN instead of relying on "fantasy" Resolves: https://github.com/joffrey-bion/seven-wonders/issues/34 --- .../main/kotlin/org/luxons/sevenwonders/ui/components/game/Tokens.kt | 2 +- sw-ui/src/main/resources/index.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'sw-ui/src') diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Tokens.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Tokens.kt index 12071215..d8ace2ee 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Tokens.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Tokens.kt @@ -112,7 +112,7 @@ private fun CSSBuilder.tokenCountStyle( brightText: Boolean, customStyle: CSSBuilder.() -> Unit = {} ) { - fontFamily = "fantasy" + fontFamily = "Josefin Sans" fontSize = size verticalAlign = VerticalAlign.middle color = if (brightText) Color.white else Color.black diff --git a/sw-ui/src/main/resources/index.html b/sw-ui/src/main/resources/index.html index da3fea6b..98623dd8 100644 --- a/sw-ui/src/main/resources/index.html +++ b/sw-ui/src/main/resources/index.html @@ -5,6 +5,7 @@ Seven Wonders + -- cgit