mirror of
https://github.com/YuleBest/FontMM.git
synced 2026-12-04 03:11:48 +08:00
- 预览彻底摆脱字体文件: fontTools 提取轮廓点 (getCoordinates 展开复合字形),
主线程 Canvas 二次贝塞尔渲染 + advance 布局/折行/行距 (previewRenderer.ts)
- 22.7MB/29422 字形中文字体实测: 首次预览 2.1s, 滑条调整 12ms (原 15-30s)
- 数据经 JSON 传递, 规避 PyProxy postMessage 克隆失败
- 编辑引擎重构:
- TTFont(lazy=True) + 字形懒快照: 首次预览只解析用到的字形
- 快照-重置: list 浅拷贝快照 (coordinates/flags/endPts/bytecode/组件),
每次编辑从原始快照重置再变换, 多次调整不累积
- numpy 批量矩阵变换 (简单字形), 复合组件内联算术 — 导出提速 62s->11.5s
- 修复: items()/instructions/transform 缺失, Program.fromBytecode 返回 None,
组件 transform 2x2 嵌套/tr[2] 越界 (Eth 等复合字形导出失败)
- 移除滑动手势切页 (仅底栏点击, 防误触)
- numpy whl 本地化进 webroot
4186f9009a
·
2026-08-06 04:14:33 +08:00
History