diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-07-01 16:55:29 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-07-01 16:55:29 +0200 |
commit | a58d4faad99e23a15acb8159e4694c07f88eee8e (patch) | |
tree | f67bddcb71934be24038c334093ddcadb61227a9 /sw-ui/src | |
parent | Better synchronization on lobby join (diff) | |
download | seven-wonders-a58d4faad99e23a15acb8159e4694c07f88eee8e.tar.gz seven-wonders-a58d4faad99e23a15acb8159e4694c07f88eee8e.tar.bz2 seven-wonders-a58d4faad99e23a15acb8159e4694c07f88eee8e.zip |
Use font from CDN instead of relying on "fantasy"
Resolves:
https://github.com/joffrey-bion/seven-wonders/issues/34
Diffstat (limited to 'sw-ui/src')
-rw-r--r-- | sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Tokens.kt | 2 | ||||
-rw-r--r-- | sw-ui/src/main/resources/index.html | 1 |
2 files changed, 2 insertions, 1 deletions
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 @@ <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="shortcut icon" href="${publicPath}favicon.ico"> <title>Seven Wonders</title> + <link href='https://fonts.googleapis.com/css?family=Josefin+Sans' rel='stylesheet' type='text/css'> <!-- Style dependencies --> <link href="https://unpkg.com/normalize.css@^7.0.0" rel="stylesheet" /> <!-- Blueprint stylesheets --> |