Subset the CJK fonts and serve them as woff2

This commit is contained in:
2026-11-15 21:59:24 +08:00
parent 800491cdf2
commit 7eb9327f40
8 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -12,21 +12,21 @@
/* Noto Sans SC — self-hosted */
@font-face {
font-family: "Noto Sans SC";
src: url("/fonts/noto-sans-sc-400.ttf") format("truetype");
src: url("/fonts/noto-sans-sc-400.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Noto Sans SC";
src: url("/fonts/noto-sans-sc-500.ttf") format("truetype");
src: url("/fonts/noto-sans-sc-500.woff2") format("woff2");
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Noto Sans SC";
src: url("/fonts/noto-sans-sc-700.ttf") format("truetype");
src: url("/fonts/noto-sans-sc-700.woff2") format("woff2");
font-weight: 700;
font-style: normal;
font-display: swap;
+1
View File
@@ -1,3 +1,4 @@
<link rel="preload" href="/fonts/noto-sans-sc-400.woff2" as="font" type="font/woff2" crossorigin />
<script>
// 让 CSS 知道 JS 可用:宽屏边注需要 JS 定位
document.documentElement.classList.add("js");
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.