summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar f0x52 <f0x@cthu.lu>2023-02-15 20:10:18 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-15 20:10:18 +0100
commitb8e1ab312d5f54d334158e2544eaefba5e54ef5a (patch)
treeb29bfafe298176cfb98db151acf0bc7029093b5f
parent[chore] Split the bug template in two (#1500) (diff)
downloadgotosocial-b8e1ab312d5f54d334158e2544eaefba5e54ef5a.tar.xz
use woff(2) fonts for Noto Sans (#1509)
-rw-r--r--web/assets/NotoSans-Bold.ttfbin415132 -> 0 bytes
-rw-r--r--web/assets/NotoSans-Regular.ttfbin414820 -> 0 bytes
-rw-r--r--web/assets/fonts/OFL.txt (renamed from web/assets/OFL.txt)2
-rw-r--r--web/assets/fonts/noto-sans-v27-latin-700.woffbin0 -> 16312 bytes
-rw-r--r--web/assets/fonts/noto-sans-v27-latin-700.woff2bin0 -> 12684 bytes
-rw-r--r--web/assets/fonts/noto-sans-v27-latin-regular.woffbin0 -> 16592 bytes
-rw-r--r--web/assets/fonts/noto-sans-v27-latin-regular.woff2bin0 -> 12860 bytes
-rw-r--r--web/source/css/base.css20
8 files changed, 14 insertions, 8 deletions
diff --git a/web/assets/NotoSans-Bold.ttf b/web/assets/NotoSans-Bold.ttf
deleted file mode 100644
index 6e00cdce1..000000000
--- a/web/assets/NotoSans-Bold.ttf
+++ /dev/null
Binary files differ
diff --git a/web/assets/NotoSans-Regular.ttf b/web/assets/NotoSans-Regular.ttf
deleted file mode 100644
index 9dd10199b..000000000
--- a/web/assets/NotoSans-Regular.ttf
+++ /dev/null
Binary files differ
diff --git a/web/assets/OFL.txt b/web/assets/fonts/OFL.txt
index 13f3f8d59..94d1bf7b5 100644
--- a/web/assets/OFL.txt
+++ b/web/assets/fonts/OFL.txt
@@ -1,5 +1,3 @@
-Open Font License applies to NotoSans-Regular.ttf and NotoSans-Bold.ttf in this directory
-
Copyright 2012 Google Inc. All Rights Reserved.
This Font Software is licensed under the SIL Open Font License,
diff --git a/web/assets/fonts/noto-sans-v27-latin-700.woff b/web/assets/fonts/noto-sans-v27-latin-700.woff
new file mode 100644
index 000000000..a03733c89
--- /dev/null
+++ b/web/assets/fonts/noto-sans-v27-latin-700.woff
Binary files differ
diff --git a/web/assets/fonts/noto-sans-v27-latin-700.woff2 b/web/assets/fonts/noto-sans-v27-latin-700.woff2
new file mode 100644
index 000000000..e805a0097
--- /dev/null
+++ b/web/assets/fonts/noto-sans-v27-latin-700.woff2
Binary files differ
diff --git a/web/assets/fonts/noto-sans-v27-latin-regular.woff b/web/assets/fonts/noto-sans-v27-latin-regular.woff
new file mode 100644
index 000000000..864551edb
--- /dev/null
+++ b/web/assets/fonts/noto-sans-v27-latin-regular.woff
Binary files differ
diff --git a/web/assets/fonts/noto-sans-v27-latin-regular.woff2 b/web/assets/fonts/noto-sans-v27-latin-regular.woff2
new file mode 100644
index 000000000..b84370d5f
--- /dev/null
+++ b/web/assets/fonts/noto-sans-v27-latin-regular.woff2
Binary files differ
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 */