hugo-soresu

My fork of hugo-xmin

git clone git://git.shimmy1996.com/hugo-soresu.git
commit fc2223db76d5408b12ee458ddac28ac7a3f10e68
parent 79b6318f611ba669ab6a6f110521ed9f6629e7a8
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Tue, 26 Jun 2018 21:43:08 -0500

Specify local equivalents for all the fonts.

Diffstat:
Mlayouts/partials/css/fonts.css | 21+++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/layouts/partials/css/fonts.css b/layouts/partials/css/fonts.css
@@ -24,39 +24,44 @@
 
 @font-face {
     font-family: "Oxygen";
-    src: url("/fonts/Oxygen-Sans.woff2") format("woff2");
+    font-weight: 400;
+    src: local("Oxygen Sans Book"),
+         url("/fonts/Oxygen-Sans.woff2") format("woff2");
 }
 
 @font-face {
     font-family: "Oxygen";
-    src: url("/fonts/Oxygen-Sans-Bold.woff2") format("woff2");
-    font-weight: bold;
+    font-weight: 700;
+    src: local("Oxygen Sans Bold"),
+         url("/fonts/Oxygen-Sans-Bold.woff2") format("woff2");
 }
 
 @font-face {
     font-family: "Noto Sans SC";
     font-weight: 300;
-    src: local("Noto Sans CJK SC"),
+    src: local("Noto Sans CJK SC Light"),
          url("/fonts/NotoSansSC-Light.woff2") format("woff2");
 }
 
 @font-face {
     font-family: "Noto Sans SC";
     font-weight: 400;
-    src: local("Noto Sans CJK SC"),
+    src: local("Noto Sans CJK SC Regular"),
          url("/fonts/NotoSansSC-Regular.woff2") format("woff2");
 }
 
 @font-face {
     font-family: "Noto Sans SC";
     font-weight: 500;
-    src: local("Noto Sans CJK SC"),
+    src: local("Noto Sans CJK SC Medium"),
          url("/fonts/NotoSansSC-Medium.woff2") format("woff2");
 }
 
 @font-face {
     font-family: "Iosevka Term";
-    src: url("/fonts/iosevka-term-ss09-regular.eascii.woff2") format('woff2');
+    font-weight: 400;
+    src: local("Iosevka Term"),
+         url("/fonts/iosevka-term-ss09-regular.eascii.woff2") format("woff2");
 }
 
 html {
@@ -64,7 +69,7 @@ html {
 }
 
 body {
-    font-family: "Noto Sans SC Override", "Oxygen", "Noto Sans CJK SC", "Noto Sans SC", Candara, Calibri, Arial, sans-serif;
+    font-family: "Noto Sans SC Override", "Oxygen", "Noto Sans SC", Candara, Calibri, Arial, sans-serif;
 }
 
 code {