mirror of
https://github.com/2234839/web-font.git
synced 2026-09-14 21:05:49 +08:00
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>