diff options
author | 2023-02-15 20:10:18 +0100 | |
---|---|---|
committer | 2023-02-15 20:10:18 +0100 | |
commit | b8e1ab312d5f54d334158e2544eaefba5e54ef5a (patch) | |
tree | b29bfafe298176cfb98db151acf0bc7029093b5f /web/source/css | |
parent | [chore] Split the bug template in two (#1500) (diff) | |
download | gotosocial-b8e1ab312d5f54d334158e2544eaefba5e54ef5a.tar.xz |
use woff(2) fonts for Noto Sans (#1509)
Diffstat (limited to 'web/source/css')
-rw-r--r-- | web/source/css/base.css | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/web/source/css/base.css b/web/source/css/base.css index 7f59aebfd..ca15984e3 100644 --- a/web/source/css/base.css +++ b/web/source/css/base.css @@ -18,16 +18,24 @@ @import "modern-normalize/modern-normalize.css"; +/* noto-sans-regular - latin */ @font-face { - font-family: "Noto Sans"; - font-weight: 400; - src: url(../NotoSans-Regular.ttf) format('truetype'); + font-family: "Noto Sans"; + font-weight: 400; + font-display: swap; + font-style: normal; + src: url('../fonts/noto-sans-v27-latin-regular.woff2') format('woff2'), + url('../fonts/noto-sans-v27-latin-regular.woff') format('woff'); } +/* noto-sans-700 - latin */ @font-face { - font-family: "Noto Sans"; - font-weight: bold; - src: url(../NotoSans-Bold.ttf) format('truetype'); + font-family: "Noto Sans"; + font-weight: 700; + font-display: swap; + font-style: normal; + src: url('../fonts/noto-sans-v27-latin-700.woff2') format('woff2'), + url('../fonts/noto-sans-v27-latin-700.woff') format('woff'); } /* standard border radius for nice squircles */ |