skillhub/web/public/fonts
FenjuFu 1c3e9be9e9
fix(web): self-host Inter and JetBrains Mono fonts (#753)
* fix(web): self-host Inter and JetBrains Mono fonts

web/index.html loaded Inter + JetBrains Mono from fonts.googleapis.com at
runtime. On networks where Google Fonts is slow or unreachable (e.g. CN),
that stylesheet blocks first paint for tens of seconds (#716).

Vendor the same woff2 (from the @fontsource distribution) under
web/public/fonts and declare them in fonts.css with latin/latin-ext
unicode-range splits and font-display: swap, then point index.html at the
local stylesheet and drop the fonts.googleapis.com / fonts.gstatic.com hosts
from the page CSP. Only Inter and JetBrains Mono were ever fetched from the
CDN, so families and weights are unchanged; no external font requests remain.

Closes #716

Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>

* docs(web): record vendored font licenses

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>

---------

Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
Co-authored-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
2026-08-25 13:49:08 +08:00
..
fonts.css fix(web): self-host Inter and JetBrains Mono fonts (#753) 2026-08-25 13:49:08 +08:00
inter-latin-400-normal.woff2 fix(web): self-host Inter and JetBrains Mono fonts (#753) 2026-08-25 13:49:08 +08:00
inter-latin-500-normal.woff2 fix(web): self-host Inter and JetBrains Mono fonts (#753) 2026-08-25 13:49:08 +08:00
inter-latin-600-normal.woff2 fix(web): self-host Inter and JetBrains Mono fonts (#753) 2026-08-25 13:49:08 +08:00
inter-latin-700-normal.woff2 fix(web): self-host Inter and JetBrains Mono fonts (#753) 2026-08-25 13:49:08 +08:00
inter-latin-ext-400-normal.woff2 fix(web): self-host Inter and JetBrains Mono fonts (#753) 2026-08-25 13:49:08 +08:00
inter-latin-ext-500-normal.woff2 fix(web): self-host Inter and JetBrains Mono fonts (#753) 2026-08-25 13:49:08 +08:00
inter-latin-ext-600-normal.woff2 fix(web): self-host Inter and JetBrains Mono fonts (#753) 2026-08-25 13:49:08 +08:00
inter-latin-ext-700-normal.woff2 fix(web): self-host Inter and JetBrains Mono fonts (#753) 2026-08-25 13:49:08 +08:00
jetbrains-mono-latin-400-normal.woff2 fix(web): self-host Inter and JetBrains Mono fonts (#753) 2026-08-25 13:49:08 +08:00
jetbrains-mono-latin-500-normal.woff2 fix(web): self-host Inter and JetBrains Mono fonts (#753) 2026-08-25 13:49:08 +08:00
jetbrains-mono-latin-ext-400-normal.woff2 fix(web): self-host Inter and JetBrains Mono fonts (#753) 2026-08-25 13:49:08 +08:00
jetbrains-mono-latin-ext-500-normal.woff2 fix(web): self-host Inter and JetBrains Mono fonts (#753) 2026-08-25 13:49:08 +08:00
LICENSE.md fix(web): self-host Inter and JetBrains Mono fonts (#753) 2026-08-25 13:49:08 +08:00