Add custom fonts with iA Writer Quattro S and Noto Sans SC

This commit is contained in:
2026-05-13 16:33:32 +08:00
parent f13f048325
commit d3abc52194
3 changed files with 29 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
/* ===== Custom Fonts ===== */
/* iA Writer Quattro S — self-hosted */
@font-face {
font-family: "iA Writer Quattro S";
src: url("/fonts/iAWriterQuattroSRegular.ttf") format("truetype");
font-weight: 400;
font-style: normal;
font-display: swap;
}
/* Global font stack: English → Chinese → system fallback */
html,
body {
font-family: "iA Writer Quattro S", "Noto Sans SC", sans-serif;
}
/* Code blocks keep monospace */
code,
pre,
kbd {
font-family:
"SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", "Noto Sans SC",
monospace;
}
+4
View File
@@ -0,0 +1,4 @@
<!-- Custom fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap" rel="stylesheet">
Binary file not shown.