update at 2026-02-08 22:31:25

This commit is contained in:
douboer
2026-02-08 22:31:25 +08:00
parent 0f5a7f0d85
commit f078dd3261
39 changed files with 587 additions and 213 deletions

View File

@@ -8,7 +8,7 @@
- 远端 API 生成 SVG服务端读取字体并渲染
- SVG 预览
- 导出 SVG 并调用 `wx.shareFileMessage` 分享
- SVG 渲染到 Canvas 并导出 PNG保存到系统相册
- 远端 API 生成 PNG保存到系统相册
## 目录说明
@@ -34,6 +34,11 @@ miniprogram/
5. Nginx 配置 `/api/` 反向代理到渲染服务。
6. 编译运行。
## 导出说明
- `SVG`:受微信限制,`shareFileMessage` 需由单次点击直接触发,建议逐个字体导出。
- `PNG`:由服务端 `POST /api/render-png` 直接返回二进制,小程序仅负责保存到相册。
## 字体清单格式(由服务端解析)
`assets/fonts.json` 每项字段: