From 41fb22790a8965d646add7f4aeaccc3d1f7113e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E9=98=BF=E6=B1=9F=28Relakkes?= =?UTF-8?q?=29?= Date: Tue, 7 Apr 2026 22:30:18 +0800 Subject: [PATCH] feat: self-host fonts to eliminate Google CDN dependency Replace Google Fonts CDN links with locally hosted woff2 files to avoid FOUT/FOIT on slow networks and ensure the app works in regions where Google is blocked. Material Symbols uses font-display: block to prevent raw icon text from flashing on load. Co-Authored-By: Claude Opus 4.6 (1M context) --- desktop/index.html | 3 +- desktop/public/fonts/inter-latin-ext.woff2 | Bin 0 -> 85272 bytes desktop/public/fonts/inter-latin.woff2 | Bin 0 -> 48432 bytes .../fonts/jetbrains-mono-latin-ext.woff2 | Bin 0 -> 7368 bytes .../public/fonts/jetbrains-mono-latin.woff2 | Bin 0 -> 21212 bytes desktop/public/fonts/manrope-latin-ext.woff2 | Bin 0 -> 15240 bytes desktop/public/fonts/manrope-latin.woff2 | Bin 0 -> 24576 bytes .../fonts/material-symbols-outlined.woff2 | Bin 0 -> 1109584 bytes desktop/src/theme/globals.css | 65 ++++++++++++++++++ 9 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 desktop/public/fonts/inter-latin-ext.woff2 create mode 100644 desktop/public/fonts/inter-latin.woff2 create mode 100644 desktop/public/fonts/jetbrains-mono-latin-ext.woff2 create mode 100644 desktop/public/fonts/jetbrains-mono-latin.woff2 create mode 100644 desktop/public/fonts/manrope-latin-ext.woff2 create mode 100644 desktop/public/fonts/manrope-latin.woff2 create mode 100644 desktop/public/fonts/material-symbols-outlined.woff2 diff --git a/desktop/index.html b/desktop/index.html index b9d55a37..05d212eb 100644 --- a/desktop/index.html +++ b/desktop/index.html @@ -4,8 +4,7 @@ Claude Code Companion - - +