From a7d92586514a0ca9a9be414668558d93670c69ac Mon Sep 17 00:00:00 2001 From: "Somhairle H. Marisol" Date: Sat, 15 Aug 2026 18:32:50 +0800 Subject: style(theme): 全局正文字体切换为方正悠宋 简 509R(woff2 1.08MB) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - @font-face 替换 TensentypeCode 为 FZYouSongS-509R(fonttools 转 woff2,7106 CJK 汉字) - $font-family / head.ejs preload 同步更新 - 删除旧 TensentypeCode.woff2(1.4MB),新字体更小且为宋体正文风格 --- themes/theme/layout/partials/head.ejs | 2 +- themes/theme/source/css/font-slices.styl | 8 ++++---- themes/theme/source/css/variable.styl | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'themes') diff --git a/themes/theme/layout/partials/head.ejs b/themes/theme/layout/partials/head.ejs index 16be12f8..0b15366f 100644 --- a/themes/theme/layout/partials/head.ejs +++ b/themes/theme/layout/partials/head.ejs @@ -40,7 +40,7 @@ <% } %> <%# font preload %> - + <%# javascript list %> <% if (theme.scripts !==undefined && diff --git a/themes/theme/source/css/font-slices.styl b/themes/theme/source/css/font-slices.styl index 3c90c548..601f8cae 100644 --- a/themes/theme/source/css/font-slices.styl +++ b/themes/theme/source/css/font-slices.styl @@ -1,9 +1,9 @@ -// FONT - Tensentype Code -// 单文件字体,替换原有的 GoogleSansCode 5 分片 +// FONT - FZYouSongS 509R +// 方正悠宋 简 509R,全站强制正文字体(woff2, 1.08MB, 7106 CJK 汉字) @font-face - font-family 'TensentypeCode' + font-family 'FZYouSongS-509R' font-style normal font-weight 400 font-display swap - src url('/fonts/TensentypeCode.woff2') format('woff2') + src url('/fonts/FZYouSongS-509R.woff2') format('woff2') diff --git a/themes/theme/source/css/variable.styl b/themes/theme/source/css/variable.styl index 4deaed5d..feb9b759 100644 --- a/themes/theme/source/css/variable.styl +++ b/themes/theme/source/css/variable.styl @@ -18,7 +18,7 @@ $margin-s-2 = 4*$px $margin-s-1 = 2*$px $margin-s-0 = 1*$px -$font-family = 'TensentypeCode', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif +$font-family = 'FZYouSongS-509R', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif $font-weight-light = 300 $font-weight-regular = 400 -- cgit v1.2.3