From c536450ab09608840851eba273a1c84c4f4d37cf Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Tue, 20 Jan 2026 18:44:22 +0100 Subject: [PATCH] fix(fonts): host fonts in Readest CDN for more stable web fonts distribution (#3005) --- .../public/locales/ar/translation.json | 4 +- .../public/locales/bn/translation.json | 4 +- .../public/locales/bo/translation.json | 4 +- .../public/locales/de/translation.json | 4 +- .../public/locales/el/translation.json | 4 +- .../public/locales/en/translation.json | 4 +- .../public/locales/es/translation.json | 4 +- .../public/locales/fa/translation.json | 4 +- .../public/locales/fr/translation.json | 4 +- .../public/locales/hi/translation.json | 4 +- .../public/locales/id/translation.json | 4 +- .../public/locales/it/translation.json | 4 +- .../public/locales/ja/translation.json | 4 +- .../public/locales/ko/translation.json | 4 +- .../public/locales/ms/translation.json | 4 +- .../public/locales/nl/translation.json | 4 +- .../public/locales/pl/translation.json | 4 +- .../public/locales/pt/translation.json | 4 +- .../public/locales/ru/translation.json | 4 +- .../public/locales/si/translation.json | 4 +- .../public/locales/sv/translation.json | 4 +- .../public/locales/ta/translation.json | 4 +- .../public/locales/th/translation.json | 4 +- .../public/locales/tr/translation.json | 4 +- .../public/locales/uk/translation.json | 4 +- .../public/locales/vi/translation.json | 4 +- .../public/locales/zh-CN/translation.json | 4 +- .../public/locales/zh-TW/translation.json | 4 +- apps/readest-app/src-tauri/tauri.conf.json | 4 +- apps/readest-app/src/services/constants.ts | 4 +- apps/readest-app/src/styles/fonts.ts | 57 ++----------------- 31 files changed, 64 insertions(+), 113 deletions(-) diff --git a/apps/readest-app/public/locales/ar/translation.json b/apps/readest-app/public/locales/ar/translation.json index cb7f6d50..dadeb2f3 100644 --- a/apps/readest-app/public/locales/ar/translation.json +++ b/apps/readest-app/public/locales/ar/translation.json @@ -353,8 +353,8 @@ "{{count}} pages left in chapter_many": "تبقّت {{count}} صفحة في هذا الفصل", "{{count}} pages left in chapter_other": "تبقّى {{count}} صفحة في هذا الفصل", "Show Remaining Pages": "عرض الصفحات المتبقية", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Manage Subscription": "إدارة الاشتراك", "Coming Soon": "قريبًا", diff --git a/apps/readest-app/public/locales/bn/translation.json b/apps/readest-app/public/locales/bn/translation.json index 19779742..4253947a 100644 --- a/apps/readest-app/public/locales/bn/translation.json +++ b/apps/readest-app/public/locales/bn/translation.json @@ -485,8 +485,8 @@ "LXGW WenKai GB Screen": "LXGW WenKai GB Screen", "LXGW WenKai TC": "LXGW WenKai TC", "GuanKiapTsingKhai-T": "GuanKiapTsingKhai-T", - "Source Han Serif CN VF": "Source Han Serif CN VF", - "Huiwen-mincho": "Huiwen-mincho", + "Source Han Serif CN": "Source Han Serif CN", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa_OldSong", "Google Books": "গুগল বুকস", "Open Library": "ওপেন লাইব্রেরি", diff --git a/apps/readest-app/public/locales/bo/translation.json b/apps/readest-app/public/locales/bo/translation.json index 2bb68a13..e4cd3d02 100644 --- a/apps/readest-app/public/locales/bo/translation.json +++ b/apps/readest-app/public/locales/bo/translation.json @@ -333,8 +333,8 @@ "Reset Settings": "སྒྲིག་བཀོད་བསྐྱར་སྒྲིག", "{{count}} pages left in chapter_other": "ལེའུ་འདིར་ད་དུང་ {{count}} ཤོག་ལྷེ་ལྷག་ཡོད།", "Show Remaining Pages": "ལྷག་མའི་ཤོག་ལྷེའི་གྲངས་ཀ་མངོན་པ།", - "Source Han Serif CN VF": "སི་ཡོན་སུང་ཐི།", - "Huiwen-mincho": "ཧུའེ་ཝུན་མིང་ཁྲའོ་ཐི།", + "Source Han Serif CN": "སི་ཡོན་སུང་ཐི།", + "Huiwen-MinchoGBK": "ཧུའེ་ཝུན་མིང་ཁྲའོ་ཐི།", "KingHwa_OldSong": "ཅིང་ཧྭ་ལའོ་སུང་ཐི།", "Manage Subscription": "མཚམས་སྦྱོར་དོ་དམ།", "Coming Soon": "ཉེ་བར་སྤྱོད་འགོ་འཛུགས་རྒྱུ།", diff --git a/apps/readest-app/public/locales/de/translation.json b/apps/readest-app/public/locales/de/translation.json index 31c623f3..47d78e84 100644 --- a/apps/readest-app/public/locales/de/translation.json +++ b/apps/readest-app/public/locales/de/translation.json @@ -337,8 +337,8 @@ "{{count}} pages left in chapter_one": "{{count}} Seite verbleibend im Kapitel", "{{count}} pages left in chapter_other": "{{count}} Seiten verbleibend im Kapitel", "Show Remaining Pages": "Verbleibende Seiten anzeigen", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Manage Subscription": "Abo verwalten", "Coming Soon": "Demnächst verfügbar", diff --git a/apps/readest-app/public/locales/el/translation.json b/apps/readest-app/public/locales/el/translation.json index f7c31d9c..73ffd717 100644 --- a/apps/readest-app/public/locales/el/translation.json +++ b/apps/readest-app/public/locales/el/translation.json @@ -338,8 +338,8 @@ "{{count}} pages left in chapter_one": "Μένει {{count}} σελίδα", "{{count}} pages left in chapter_other": "Μένουν {{count}} σελίδες", "Show Remaining Pages": "Εμφάνιση υπολοίπων", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Manage Subscription": "Διαχείριση συνδρομής", "Coming Soon": "Έρχεται σύντομα", diff --git a/apps/readest-app/public/locales/en/translation.json b/apps/readest-app/public/locales/en/translation.json index 8d2214d3..9727001b 100644 --- a/apps/readest-app/public/locales/en/translation.json +++ b/apps/readest-app/public/locales/en/translation.json @@ -1,8 +1,8 @@ { "LXGW WenKai GB Screen": "LXGW WenKai SC", "LXGW WenKai TC": "LXGW WenKai TC", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Are you sure to delete {{count}} selected book(s)?_one": "Are you sure to delete {{count}} selected book?", "Are you sure to delete {{count}} selected book(s)?_other": "Are you sure to delete {{count}} selected books?", diff --git a/apps/readest-app/public/locales/es/translation.json b/apps/readest-app/public/locales/es/translation.json index 442c3791..65f5731f 100644 --- a/apps/readest-app/public/locales/es/translation.json +++ b/apps/readest-app/public/locales/es/translation.json @@ -369,8 +369,8 @@ "{{count}} pages left in chapter_many": "{{count}} páginas restantes en el capítulo", "{{count}} pages left in chapter_other": "{{count}} páginas restantes en el capítulo", "Show Remaining Pages": "Mostrar resto", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Manage Subscription": "Gestionar suscripción", "Coming Soon": "Próximamente", diff --git a/apps/readest-app/public/locales/fa/translation.json b/apps/readest-app/public/locales/fa/translation.json index ca57da0c..edc42559 100644 --- a/apps/readest-app/public/locales/fa/translation.json +++ b/apps/readest-app/public/locales/fa/translation.json @@ -337,8 +337,8 @@ "{{count}} pages left in chapter_one": "{{count}} صفحه تا انتهای فصل", "{{count}} pages left in chapter_other": "{{count}} صفحه تا انتهای فصل", "Show Remaining Pages": "نمایش صفحات باقی‌مانده", - "Source Han Serif CN VF": "Source Han Serif CN VF", - "Huiwen-mincho": "Huiwen-mincho", + "Source Han Serif CN": "Source Han Serif CN", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa_OldSong", "Manage Subscription": "مدیریت اشتراک", "Coming Soon": "به‌زودی", diff --git a/apps/readest-app/public/locales/fr/translation.json b/apps/readest-app/public/locales/fr/translation.json index 00cbf800..d7b5be98 100644 --- a/apps/readest-app/public/locales/fr/translation.json +++ b/apps/readest-app/public/locales/fr/translation.json @@ -341,8 +341,8 @@ "{{count}} pages left in chapter_many": "{{count}} pages restantes dans le chapitre", "{{count}} pages left in chapter_other": "{{count}} pages restantes dans le chapitre", "Show Remaining Pages": "Voir restantes", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Manage Subscription": "Gérer l’abonnement", "Coming Soon": "Bientôt disponible", diff --git a/apps/readest-app/public/locales/hi/translation.json b/apps/readest-app/public/locales/hi/translation.json index 35a627ea..5d818cfd 100644 --- a/apps/readest-app/public/locales/hi/translation.json +++ b/apps/readest-app/public/locales/hi/translation.json @@ -338,8 +338,8 @@ "{{count}} pages left in chapter_one": "इस अध्याय में {{count}} पृष्ठ शेष हैं", "{{count}} pages left in chapter_other": "इस अध्याय में {{count}} पृष्ठ शेष हैं", "Show Remaining Pages": "शेष पृष्ठ दिखाएँ", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Manage Subscription": "सदस्यता प्रबंधित करें", "Coming Soon": "जल्द आ रहा है", diff --git a/apps/readest-app/public/locales/id/translation.json b/apps/readest-app/public/locales/id/translation.json index 4669fc80..1a5ae9c2 100644 --- a/apps/readest-app/public/locales/id/translation.json +++ b/apps/readest-app/public/locales/id/translation.json @@ -334,8 +334,8 @@ "Reset Settings": "Atur Ulang Pengaturan", "{{count}} pages left in chapter_other": "{{count}} halaman tersisa di bab ini", "Show Remaining Pages": "Tampilkan halaman tersisa", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Manage Subscription": "Kelola Langganan", "Coming Soon": "Segera Hadir", diff --git a/apps/readest-app/public/locales/it/translation.json b/apps/readest-app/public/locales/it/translation.json index 6d01e75b..ef9c899c 100644 --- a/apps/readest-app/public/locales/it/translation.json +++ b/apps/readest-app/public/locales/it/translation.json @@ -342,8 +342,8 @@ "{{count}} pages left in chapter_many": "{{count}} pagine rimaste nel capitolo", "{{count}} pages left in chapter_other": "{{count}} pagine rimaste nel capitolo", "Show Remaining Pages": "Mostra pagine rimanenti", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Manage Subscription": "Gestisci Abbonamento", "Coming Soon": "Prossimamente", diff --git a/apps/readest-app/public/locales/ja/translation.json b/apps/readest-app/public/locales/ja/translation.json index 73066427..7fb73e79 100644 --- a/apps/readest-app/public/locales/ja/translation.json +++ b/apps/readest-app/public/locales/ja/translation.json @@ -334,8 +334,8 @@ "Reset Settings": "設定をリセット", "{{count}} pages left in chapter_other": "{{count}} ページ残り", "Show Remaining Pages": "残りを表示", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Manage Subscription": "サブスクリプションを管理", "Coming Soon": "近日公開", diff --git a/apps/readest-app/public/locales/ko/translation.json b/apps/readest-app/public/locales/ko/translation.json index 3118817c..20aa7471 100644 --- a/apps/readest-app/public/locales/ko/translation.json +++ b/apps/readest-app/public/locales/ko/translation.json @@ -334,8 +334,8 @@ "Reset Settings": "설정 재설정", "{{count}} pages left in chapter_other": "남은 페이지 {{count}}장", "Show Remaining Pages": "남은 페이지 보기", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Manage Subscription": "구독 관리", "Coming Soon": "곧 출시 예정", diff --git a/apps/readest-app/public/locales/ms/translation.json b/apps/readest-app/public/locales/ms/translation.json index 453b390b..b239a96b 100644 --- a/apps/readest-app/public/locales/ms/translation.json +++ b/apps/readest-app/public/locales/ms/translation.json @@ -646,8 +646,8 @@ "LXGW WenKai GB Screen": "LXGW WenKai GB Screen", "LXGW WenKai TC": "LXGW WenKai TC", "GuanKiapTsingKhai-T": "GuanKiapTsingKhai-T", - "Source Han Serif CN VF": "Source Han Serif CN VF", - "Huiwen-mincho": "Huiwen-mincho", + "Source Han Serif CN": "Source Han Serif CN", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa_OldSong", "Google Books": "Google Books", "Open Library": "Open Library", diff --git a/apps/readest-app/public/locales/nl/translation.json b/apps/readest-app/public/locales/nl/translation.json index 3ec687fb..6a76437f 100644 --- a/apps/readest-app/public/locales/nl/translation.json +++ b/apps/readest-app/public/locales/nl/translation.json @@ -338,8 +338,8 @@ "{{count}} pages left in chapter_one": "Nog {{count}} pagina in hoofdstuk", "{{count}} pages left in chapter_other": "Nog {{count}} pagina’s in hoofdstuk", "Show Remaining Pages": "Toon resterende pagina’s", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Manage Subscription": "Abonnement beheren", "Coming Soon": "Binnenkort beschikbaar", diff --git a/apps/readest-app/public/locales/pl/translation.json b/apps/readest-app/public/locales/pl/translation.json index 4bf1e97e..36cdb1c8 100644 --- a/apps/readest-app/public/locales/pl/translation.json +++ b/apps/readest-app/public/locales/pl/translation.json @@ -346,8 +346,8 @@ "{{count}} pages left in chapter_many": "Pozostało {{count}} stron w rozdziale", "{{count}} pages left in chapter_other": "Pozostało {{count}} stron w rozdziale", "Show Remaining Pages": "Pokaż pozostałe strony", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Manage Subscription": "Zarządzaj subskrypcją", "Coming Soon": "Wkrótce dostępne", diff --git a/apps/readest-app/public/locales/pt/translation.json b/apps/readest-app/public/locales/pt/translation.json index b51f9f55..88abad47 100644 --- a/apps/readest-app/public/locales/pt/translation.json +++ b/apps/readest-app/public/locales/pt/translation.json @@ -342,8 +342,8 @@ "{{count}} pages left in chapter_many": "Faltam {{count}} páginas neste capítulo", "{{count}} pages left in chapter_other": "Faltam {{count}} páginas neste capítulo", "Show Remaining Pages": "Mostrar páginas restantes", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Manage Subscription": "Gerenciar assinatura", "Coming Soon": "Em breve", diff --git a/apps/readest-app/public/locales/ru/translation.json b/apps/readest-app/public/locales/ru/translation.json index 13196f03..49aa6c84 100644 --- a/apps/readest-app/public/locales/ru/translation.json +++ b/apps/readest-app/public/locales/ru/translation.json @@ -346,8 +346,8 @@ "{{count}} pages left in chapter_many": "Осталось {{count}} страниц в главе", "{{count}} pages left in chapter_other": "Осталось {{count}} страниц в главе", "Show Remaining Pages": "Показать оставшиеся страницы", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Manage Subscription": "Управление подпиской", "Coming Soon": "Скоро будет", diff --git a/apps/readest-app/public/locales/si/translation.json b/apps/readest-app/public/locales/si/translation.json index d0752aae..3b31bf81 100644 --- a/apps/readest-app/public/locales/si/translation.json +++ b/apps/readest-app/public/locales/si/translation.json @@ -485,8 +485,8 @@ "LXGW WenKai GB Screen": "LXGW WenKai GB Screen", "LXGW WenKai TC": "LXGW WenKai TC", "GuanKiapTsingKhai-T": "GuanKiapTsingKhai-T", - "Source Han Serif CN VF": "Source Han Serif CN VF", - "Huiwen-mincho": "Huiwen-mincho", + "Source Han Serif CN": "Source Han Serif CN", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa_OldSong", "Google Books": "Google Books", "Open Library": "Open Library", diff --git a/apps/readest-app/public/locales/sv/translation.json b/apps/readest-app/public/locales/sv/translation.json index ac7d63bd..e232c236 100644 --- a/apps/readest-app/public/locales/sv/translation.json +++ b/apps/readest-app/public/locales/sv/translation.json @@ -570,8 +570,8 @@ "LXGW WenKai GB Screen": "LXGW WenKai GB Screen", "LXGW WenKai TC": "LXGW WenKai TC", "GuanKiapTsingKhai-T": "GuanKiapTsingKhai-T", - "Source Han Serif CN VF": "Source Han Serif CN VF", - "Huiwen-mincho": "Huiwen-mincho", + "Source Han Serif CN": "Source Han Serif CN", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa_OldSong", "Google Books": "Google Böcker", "Open Library": "Open Library", diff --git a/apps/readest-app/public/locales/ta/translation.json b/apps/readest-app/public/locales/ta/translation.json index b01f23f0..26e6b2d3 100644 --- a/apps/readest-app/public/locales/ta/translation.json +++ b/apps/readest-app/public/locales/ta/translation.json @@ -485,8 +485,8 @@ "LXGW WenKai GB Screen": "LXGW WenKai GB Screen", "LXGW WenKai TC": "LXGW WenKai TC", "GuanKiapTsingKhai-T": "GuanKiapTsingKhai-T", - "Source Han Serif CN VF": "Source Han Serif CN VF", - "Huiwen-mincho": "Huiwen-mincho", + "Source Han Serif CN": "Source Han Serif CN", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa_OldSong", "Google Books": "Google Books", "Open Library": "Open Library", diff --git a/apps/readest-app/public/locales/th/translation.json b/apps/readest-app/public/locales/th/translation.json index da82adff..c1eb07c5 100644 --- a/apps/readest-app/public/locales/th/translation.json +++ b/apps/readest-app/public/locales/th/translation.json @@ -376,8 +376,8 @@ "LXGW WenKai GB Screen": "LXGW WenKai GB Screen", "LXGW WenKai TC": "LXGW WenKai TC", "GuanKiapTsingKhai-T": "GuanKiapTsingKhai-T", - "Source Han Serif CN VF": "Source Han Serif CN VF", - "Huiwen-mincho": "Huiwen-mincho", + "Source Han Serif CN": "Source Han Serif CN", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa_OldSong", "Azure Translator": "Azure Translator", "DeepL": "DeepL", diff --git a/apps/readest-app/public/locales/tr/translation.json b/apps/readest-app/public/locales/tr/translation.json index 24fb0250..eebe1bb7 100644 --- a/apps/readest-app/public/locales/tr/translation.json +++ b/apps/readest-app/public/locales/tr/translation.json @@ -338,8 +338,8 @@ "{{count}} pages left in chapter_one": "Bu bölümde {{count}} sayfa kaldı", "{{count}} pages left in chapter_other": "Bu bölümde {{count}} sayfa kaldı", "Show Remaining Pages": "Kalan sayfaları göster", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Manage Subscription": "Aboneliği Yönet", "Coming Soon": "Yakında", diff --git a/apps/readest-app/public/locales/uk/translation.json b/apps/readest-app/public/locales/uk/translation.json index 3631ef3b..b2bf6fde 100644 --- a/apps/readest-app/public/locales/uk/translation.json +++ b/apps/readest-app/public/locales/uk/translation.json @@ -346,8 +346,8 @@ "{{count}} pages left in chapter_many": "Залишилось {{count}} сторінок у розділі", "{{count}} pages left in chapter_other": "Залишилось {{count}} сторінок у розділі", "Show Remaining Pages": "Показати залишок сторінок", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Manage Subscription": "Керувати підпискою", "Coming Soon": "Незабаром", diff --git a/apps/readest-app/public/locales/vi/translation.json b/apps/readest-app/public/locales/vi/translation.json index c7ad1ca9..c72b1eec 100644 --- a/apps/readest-app/public/locales/vi/translation.json +++ b/apps/readest-app/public/locales/vi/translation.json @@ -334,8 +334,8 @@ "Reset Settings": "Đặt lại cài đặt", "{{count}} pages left in chapter_other": "Còn {{count}} trang trong chương", "Show Remaining Pages": "Hiển thị trang còn lại", - "Source Han Serif CN VF": "Source Han Serif", - "Huiwen-mincho": "Huiwen Mincho", + "Source Han Serif CN": "Source Han Serif", + "Huiwen-MinchoGBK": "Huiwen Mincho", "KingHwa_OldSong": "KingHwa Song", "Manage Subscription": "Quản lý đăng ký", "Coming Soon": "Sắp ra mắt", diff --git a/apps/readest-app/public/locales/zh-CN/translation.json b/apps/readest-app/public/locales/zh-CN/translation.json index 63f5650c..79baaca2 100644 --- a/apps/readest-app/public/locales/zh-CN/translation.json +++ b/apps/readest-app/public/locales/zh-CN/translation.json @@ -334,8 +334,8 @@ "Reset Settings": "重置设置", "{{count}} pages left in chapter_other": "本章剩余 {{count}} 页", "Show Remaining Pages": "显示剩余页数", - "Source Han Serif CN VF": "思源宋体", - "Huiwen-mincho": "汇文明朝体", + "Source Han Serif CN": "思源宋体", + "Huiwen-MinchoGBK": "汇文明朝体", "KingHwa_OldSong": "京华老宋体", "Manage Subscription": "管理订阅", "Coming Soon": "即将上线", diff --git a/apps/readest-app/public/locales/zh-TW/translation.json b/apps/readest-app/public/locales/zh-TW/translation.json index f0c78599..46dc91e7 100644 --- a/apps/readest-app/public/locales/zh-TW/translation.json +++ b/apps/readest-app/public/locales/zh-TW/translation.json @@ -334,8 +334,8 @@ "Reset Settings": "重置設置", "{{count}} pages left in chapter_other": "本章剩餘 {{count}} 頁", "Show Remaining Pages": "顯示剩餘頁數", - "Source Han Serif CN VF": "思源宋體", - "Huiwen-mincho": "匯文明朝體", + "Source Han Serif CN": "思源宋體", + "Huiwen-MinchoGBK": "匯文明朝體", "KingHwa_OldSong": "京華老宋體", "Manage Subscription": "管理訂閱", "Coming Soon": "即將推出", diff --git a/apps/readest-app/src-tauri/tauri.conf.json b/apps/readest-app/src-tauri/tauri.conf.json index e9c2e498..c6378610 100644 --- a/apps/readest-app/src-tauri/tauri.conf.json +++ b/apps/readest-app/src-tauri/tauri.conf.json @@ -17,8 +17,8 @@ "default-src": "'self' 'unsafe-inline' blob: data: customprotocol: asset: http://asset.localhost ipc: http://ipc.localhost", "connect-src": "'self' blob: data: asset: http://asset.localhost ipc: http://ipc.localhost http://*:* https://*:* https://*.sentry.io https://*.posthog.com https://*.deepl.com https://*.wikipedia.org https://*.wiktionary.org https://*.supabase.co https://*.readest.com wss://speech.platform.bing.com https://*.cloudflarestorage.com https://translate.googleapis.com https://translate.toil.cc https://*.microsofttranslator.com https://edge.microsoft.com https://*.googleusercontent.com", "img-src": "'self' blob: data: asset: http://asset.localhost https://* https://*:* http://* http://*:*", - "style-src": "'self' 'unsafe-inline' blob: asset: http://asset.localhost https://cdn.jsdelivr.net https://fonts.googleapis.com https://chinese-fonts-cdn.deno.dev https://cdnjs.cloudflare.com https://ik.imagekit.io", - "font-src": "'self' blob: data: asset: http://asset.localhost tauri: https://db.onlinewebfonts.com https://cdn.jsdelivr.net https://fonts.gstatic.com https://chinese-fonts-cdn.deno.dev https://cdnjs.cloudflare.com https://ik.imagekit.io", + "style-src": "'self' 'unsafe-inline' blob: asset: http://asset.localhost https://cdn.jsdelivr.net https://fonts.googleapis.com https://cdnjs.cloudflare.com https://storage.readest.com", + "font-src": "'self' blob: data: asset: http://asset.localhost tauri: https://db.onlinewebfonts.com https://cdn.jsdelivr.net https://fonts.gstatic.com https://cdnjs.cloudflare.com https://storage.readest.com", "frame-src": "'self' blob: asset: http://asset.localhost https://*.stripe.com", "script-src": "'self' 'unsafe-inline' 'unsafe-eval' blob: asset: http://asset.localhost https://*.sentry.io https://*.posthog.com https://*.stripe.com" }, diff --git a/apps/readest-app/src/services/constants.ts b/apps/readest-app/src/services/constants.ts index 1ab98f41..354e489a 100644 --- a/apps/readest-app/src/services/constants.ts +++ b/apps/readest-app/src/services/constants.ts @@ -307,8 +307,8 @@ export const CJK_SERIF_FONTS = [ _('LXGW WenKai GB Screen'), _('LXGW WenKai TC'), _('GuanKiapTsingKhai-T'), - _('Source Han Serif CN VF'), - _('Huiwen-mincho'), + _('Source Han Serif CN'), + _('Huiwen-MinchoGBK'), _('KingHwa_OldSong'), ]; diff --git a/apps/readest-app/src/styles/fonts.ts b/apps/readest-app/src/styles/fonts.ts index 20d1e9a1..6d82aac6 100644 --- a/apps/readest-app/src/styles/fonts.ts +++ b/apps/readest-app/src/styles/fonts.ts @@ -26,31 +26,6 @@ const cjkGoogleFonts = [ { family: 'Noto Serif JP', weights: '' }, ]; -// Resource hints for faster font loading -const getResourceHints = (includeCJK = false) => { - const basicHints = ` - - - - - -`; - - const cjkHints = ` - - - - - - - - - -`; - - return includeCJK ? basicHints + cjkHints : basicHints; -}; - const getAdditionalBasicFontLinks = () => ` - - - - + + + +