崮生(子虚) d2b3b1939f perf(cff): 跳过无 CALLSUBR 字形的 rewriteCharstring
collectSubrRefs 返回是否含 CALLSUBR,subsetCFF 据此标记每个字形。重建 CharStrings
时仅含 CALLSUBR 的字形走 rewriteCharstring(重映射 local subr 编号),无 CALLSUBR 的
直接透传原字节——含 CALLGSUBR 但无 CALLSUBR 的透传等价(global subr 不子集化,
operand 原样)。

思源千字文 241 字形仅 65(27%)含 callsubr,176 个无 callsubr 字形原先白白跑一遍
rewriteCharstring 完整字节扫描。subsetCFF 0.74→0.51ms(-30%)。

三 OTF case CFF 输出 sha 全 IDENTICAL(纯等价变换)。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-25 07:17:12 +08:00
..
2026-04-08 22:05:17 +08:00
2024-08-19 18:10:09 +08:00