summaryrefslogtreecommitdiff
path: root/themes/theme/source/css/font-slices.styl
diff options
context:
space:
mode:
authorsomhairle <[email protected]>2026-04-21 20:40:27 +0800
committerSomhairle H. Marisol <[email protected]>2026-05-24 17:24:57 +0800
commitad8f9f55ea79a4d587aecc69698808da82de3d62 (patch)
treed25c0db712e6f015d850627ff957edea44c64f94 /themes/theme/source/css/font-slices.styl
downloadblog-ad8f9f55ea79a4d587aecc69698808da82de3d62.tar.gz
二〇二六年四月二十一日
Diffstat (limited to 'themes/theme/source/css/font-slices.styl')
-rw-r--r--themes/theme/source/css/font-slices.styl47
1 files changed, 47 insertions, 0 deletions
diff --git a/themes/theme/source/css/font-slices.styl b/themes/theme/source/css/font-slices.styl
new file mode 100644
index 00000000..97b9b47b
--- /dev/null
+++ b/themes/theme/source/css/font-slices.styl
@@ -0,0 +1,47 @@
+// FONT SLICES - GoogleSansCode 分段字体定义
+// 自动生成,包含 5 个 Unicode 范围切片
+
+// Latin 基础字符集(ASCII + 基本拉丁 + 常用标点)
+@font-face
+ font-family 'GoogleSansCode'
+ font-style normal
+ font-weight 400
+ font-display swap
+ src url('/fonts/latin-base.woff2') format('woff2')
+ unicode-range U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F
+
+// Latin 扩展(拉丁扩展 A/B + 货币符号 + 特殊字符)
+@font-face
+ font-family 'GoogleSansCode'
+ font-style normal
+ font-weight 400
+ font-display swap
+ src url('/fonts/latin-ext.woff2') format('woff2')
+ unicode-range U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF
+
+// CJK 常用汉字(约 3500 字,覆盖 99% 中文内容)
+@font-face
+ font-family 'GoogleSansCode'
+ font-style normal
+ font-weight 400
+ font-display swap
+ src url('/fonts/cjk-common.woff2') format('woff2')
+ unicode-range U+4E00-62FF
+
+// CJK 扩展汉字(次常用汉字 + 扩展 A)
+@font-face
+ font-family 'GoogleSansCode'
+ font-style normal
+ font-weight 400
+ font-display swap
+ src url('/fonts/cjk-ext.woff2') format('woff2')
+ unicode-range U+6300-9FFF, U+3400-4DBF
+
+// 符号(CJK 标点 + 全角字符)
+@font-face
+ font-family 'GoogleSansCode'
+ font-style normal
+ font-weight 400
+ font-display swap
+ src url('/fonts/symbols.woff2') format('woff2')
+ unicode-range U+3000-303F, U+FF00-FFEF