Repository navigation
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
zrr-website-slides | 791f97a | Commit Preview URL Branch Preview URL |
Oct 04 2026, 12:38 AM |
Code Review ✅ Approved🟡 Medium risk · Replaces network font fetching with local font loading and subset rendering. Fixes OG image rendering to work without network access by loading IBM Plex Mono from locked npm packages and adding Noto Sans SC as a fallback for Chinese characters, with font subsetting generated at build time. Build-time tests now run with fetch disabled to verify SVG and PNG rendering for both Latin and Chinese text. OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
zrr-website-blog | 791f97a | Commit Preview URL Branch Preview URL |
Oct 04 2026, 12:39 AM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
zrr-website-root | 791f97a | Commit Preview URL Branch Preview URL |
Oct 04 2026, 12:40 AM |
动机
OG 图片构建为每张图片请求 Google Fonts 的 CSS 和字体资源。字体服务或云端网络不可用时,博客构建会失败;中文标题也需要完整的中文字体支持。
解决方案
说明
依赖 #83,并通过 #83 依赖 #82。迁移沿用 Spore 的本地字体与子集方案;中文后备字体会改善中文标题的显示。
验证:
vp install --frozen-lockfile、vp check --fix、vp test run、三个网站的vp run build、prek run --all-files与真实提交钩子均通过。博客仍构建 109 页并生成 Pagefind 索引。字体包及子集工具作为构建依赖写入 lockfile。