commit d97f1523cd0b11fe70efd150487c8a74f8bea0c9
parent aca2c6ede03a6fc5741da1fde5ae6418045e3e93
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Wed, 27 Nov 2019 09:21:17 -0500
Add font settings
Diffstat:
4 files changed, 50 insertions(+), 0 deletions(-)
diff --git a/layouts/partials/css/fonts.css b/layouts/partials/css/fonts.css
@@ -0,0 +1,50 @@
+@font-face {
+ font-family: "Noto Sans SC Override";
+ font-weight: 400;
+ font-display: swap;
+ src: local("Noto Sans CJK SC"),
+ url("/fonts/NotoSansSC-Regular.woff2") format("woff2");
+ unicode-range: U+2018-2019, U+201C-201D;
+}
+
+@font-face {
+ font-family: "Oxygen";
+ font-weight: 400;
+ font-display: swap;
+ src: local("Oxygen Sans Book"),
+ url("/fonts/Oxygen-Sans.woff2") format("woff2");
+}
+
+@font-face {
+ font-family: "Noto Sans SC";
+ font-weight: 400;
+ font-display: swap;
+ src: local("Noto Sans CJK SC Regular"),
+ url("/fonts/NotoSansSC-Regular.woff2") format("woff2");
+}
+
+@font-face {
+ font-family: "Iosevka Term";
+ font-weight: 400;
+ font-display: swap;
+ src: local("Iosevka Term"),
+ url("/fonts/iosevka-term-ss09-regular.eascii.woff2") format("woff2");
+}
+
+body:lang(en) {
+ font-family: "Oxygen", "Noto Sans SC", Candara, Calibri, Arial, sans-serif;
+}
+
+body:lang(zh) {
+ font-family: "Noto Sans SC Override", "Oxygen", "Noto Sans SC", Candara, Calibri, Arial, sans-serif;
+}
+
+code {
+ font-family: "Iosevka Term", monospace;
+ font-size: 90%;
+}
+
+kbd {
+ font-family: "Iosevka Term", monospace;
+ font-size: 80%;
+}
diff --git a/static/fonts/NotoSansSC-Medium.woff2 b/static/fonts/NotoSansSC-Medium.woff2
Binary files differ.
diff --git a/static/fonts/Oxygen-Sans.woff2 b/static/fonts/Oxygen-Sans.woff2
Binary files differ.
diff --git a/static/fonts/iosevka-term-ss09-regular.eascii.woff2 b/static/fonts/iosevka-term-ss09-regular.eascii.woff2
Binary files differ.