Subset the CJK fonts and serve them as woff2
This commit is contained in:
@@ -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,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.
Reference in New Issue
Block a user