use woff2 for lichess font when possible

still provide woff for safari
v2
Thibault Duplessis 2019-04-25 12:43:19 +07:00
parent 4f98de608e
commit bde61f2962
3 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ object layout {
import bits._
private val noTranslate = raw("""<meta name="google" content="notranslate" />""")
private def fontPreload = raw(s"""<link rel="preload" href="${assetUrl(s"font/lichess.woff")}" as="font" type="font/woff" crossorigin/>""")
private def fontPreload = raw(s"""<link rel="preload" href="${assetUrl(s"font/lichess.woff2")}" as="font" type="font/woff2" crossorigin/>""")
private val manifests = raw(List(
"""<link rel="manifest" href="/manifest.json" />""",
"""<meta name="twitter:site" content="@lichess" />"""

Binary file not shown.

View File

@ -3,7 +3,7 @@
}
@font-face {
font-family: "lichess";
src: local-font("lichess.woff") format("woff");
src: local-font("lichess.woff2") format("woff2"), local-font("lichess.woff") format("woff");
font-display: block;
font-weight: normal;
font-style: normal;