调整字体

This commit is contained in:
浅念
2026-09-03 10:57:17 +08:00
parent ac58ebb32c
commit 65312fecf7
34 changed files with 7958 additions and 29 deletions
+15 -11
View File
@@ -1,13 +1,17 @@
/* Self-hosted fonts (served locally — no external/Google dependency).
Inter (400–700) for body, Archivo (500–900) for display. */
/* Self-hosted fonts (served locally — no external dependency).
TeX Gyre Heros (GUST Font License, free for commercial use) —
Helvetica-style latin face. CJK text falls through to system fonts
via the fallback stack in style.css tokens.
Note: only 400/700 real weights exist; 500 maps to 400, 600/800/900 map to 700. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-700.woff2) format('woff2'); }
/* TeX Gyre Heros — regular family (active: wired to --font-display / --font-body) */
@font-face { font-family: 'TeX Gyre Heros'; font-style: normal; font-weight: 400; font-display: swap; src: url(../font/texgyreheros-regular.otf) format('opentype'); }
@font-face { font-family: 'TeX Gyre Heros'; font-style: normal; font-weight: 700; font-display: swap; src: url(../font/texgyreheros-bold.otf) format('opentype'); }
@font-face { font-family: 'TeX Gyre Heros'; font-style: italic; font-weight: 400; font-display: swap; src: url(../font/texgyreheros-italic.otf) format('opentype'); }
@font-face { font-family: 'TeX Gyre Heros'; font-style: italic; font-weight: 700; font-display: swap; src: url(../font/texgyreheros-bolditalic.otf) format('opentype'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/archivo-latin-500.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/archivo-latin-600.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/archivo-latin-700.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/archivo-latin-800.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 900; font-display: swap; src: url(../fonts/archivo-latin-900.woff2) format('woff2'); }
/* TeX Gyre Heros Cn — condensed (registered for future use, e.g. heavy display titles; not referenced by tokens yet, so browsers never download it) */
@font-face { font-family: 'TeX Gyre Heros Cn'; font-style: normal; font-weight: 400; font-display: swap; src: url(../font/texgyreheroscn-regular.otf) format('opentype'); }
@font-face { font-family: 'TeX Gyre Heros Cn'; font-style: normal; font-weight: 700; font-display: swap; src: url(../font/texgyreheroscn-bold.otf) format('opentype'); }
@font-face { font-family: 'TeX Gyre Heros Cn'; font-style: italic; font-weight: 400; font-display: swap; src: url(../font/texgyreheroscn-italic.otf) format('opentype'); }
@font-face { font-family: 'TeX Gyre Heros Cn'; font-style: italic; font-weight: 700; font-display: swap; src: url(../font/texgyreheroscn-bolditalic.otf) format('opentype'); }