hugo-soresu

My fork of hugo-xmin

git clone git://git.shimmy1996.com/hugo-soresu.git
commit 79b6318f611ba669ab6a6f110521ed9f6629e7a8
parent 2dafb609421bead1a396fd28bd5e3c12e8e3c966
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Tue, 26 Jun 2018 20:58:03 -0500

Use a subset for Noto Sans CJK SC, generated by picking characters used in my blog.

Diffstat:
Mlayouts/partials/css/fonts.css | 27+++++++++++++++++++++++----
Astatic/fonts/NotoSansSC-Light.woff2 | 0
Astatic/fonts/NotoSansSC-Medium.woff2 | 0
Astatic/fonts/NotoSansSC-Regular.woff2 | 0
4 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/layouts/partials/css/fonts.css b/layouts/partials/css/fonts.css
@@ -1,11 +1,9 @@
-@import url("https://fonts.googleapis.com/earlyaccess/notosansscsliced.css");
-
 @font-face {
     font-family: "Noto Sans SC Override";
     font-weight: 300;
     src: local("Noto Sans CJK SC"),
          url("/fonts/NotoSansSCOverride-Light.woff2") format("woff2");
-         unicode-range: U+2018-2019, U+201C-201D;
+    unicode-range: U+2018-2019, U+201C-201D;
 }
 
 @font-face {
@@ -36,6 +34,27 @@
 }
 
 @font-face {
+    font-family: "Noto Sans SC";
+    font-weight: 300;
+    src: local("Noto Sans CJK SC"),
+         url("/fonts/NotoSansSC-Light.woff2") format("woff2");
+}
+
+@font-face {
+    font-family: "Noto Sans SC";
+    font-weight: 400;
+    src: local("Noto Sans CJK SC"),
+         url("/fonts/NotoSansSC-Regular.woff2") format("woff2");
+}
+
+@font-face {
+    font-family: "Noto Sans SC";
+    font-weight: 500;
+    src: local("Noto Sans CJK SC"),
+         url("/fonts/NotoSansSC-Medium.woff2") format("woff2");
+}
+
+@font-face {
     font-family: "Iosevka Term";
     src: url("/fonts/iosevka-term-ss09-regular.eascii.woff2") format('woff2');
 }
@@ -45,7 +64,7 @@ html {
 }
 
 body {
-    font-family: "Noto Sans SC Override", "Oxygen", "Noto Sans CJK SC", "Noto Sans SC Sliced", Candara, Calibri, Arial, sans-serif;
+    font-family: "Noto Sans SC Override", "Oxygen", "Noto Sans CJK SC", "Noto Sans SC", Candara, Calibri, Arial, sans-serif;
 }
 
 code {
diff --git a/static/fonts/NotoSansSC-Light.woff2 b/static/fonts/NotoSansSC-Light.woff2
Binary files differ.
diff --git a/static/fonts/NotoSansSC-Medium.woff2 b/static/fonts/NotoSansSC-Medium.woff2
Binary files differ.
diff --git a/static/fonts/NotoSansSC-Regular.woff2 b/static/fonts/NotoSansSC-Regular.woff2
Binary files differ.