Skip to content

Commit 9ebc781

Browse files
committed
使用本地字体
1 parent 9a05abe commit 9ebc781

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,6 @@ jobs:
2828
- name: Install fonttools
2929
run: pip install fonttools brotli
3030

31-
- name: Download font file
32-
run: |
33-
mkdir -p fonts-source
34-
echo "📥 下载思源宋体字体文件..."
35-
# 从 GitHub 直接下载 Noto Serif SC Regular TTF
36-
curl -L "https://github.com/google/fonts/raw/main/ofl/notoserifsc/NotoSerifSC-Regular.ttf" \
37-
-o fonts-source/NotoSerifSC-Regular.ttf || {
38-
echo "❌ 字体文件下载失败"
39-
exit 1
40-
}
41-
ls -lh fonts-source/
42-
echo "✅ 字体文件下载完成"
43-
4431
- name: Install dependencies
4532
run: bun install
4633
# edgeone CLI 已包含在 devDependencies 中

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,5 @@ bun.lockb
9797
lighthouse-reports/
9898

9999
# Font source files (large files, should be downloaded separately)
100-
fonts-source/*.ttf
101100
fonts-source/*.otf
102101
!fonts-source/.gitkeep

0 commit comments

Comments
 (0)