mirror of
https://github.com/2234839/web-font.git
synced 2026-09-12 20:11:51 +08:00
subsetGSUB/subsetGPOS 的 lookup 偏移槽(lookupCount 个)与 gsub unsupported 分支的 subtable 偏移槽,从 reserveOffset16 闭包模式改为 writeUint16(0) 占位 + 记录 slot 起点 + 序列化后 writeInt16At 回填——与已做的 subtable 槽优化329、 writeChainFormat3 coverage 槽(gsub-writechainformat3)统一。 消除 lookupCount 个 per-lookup 闭包 + patch 对象分配。思源 GSUB 56 lookup、 FiraCode/霞鹜同。gsub unsupported 分支 subtable 槽也随之统一(原仅 supported 分支用优化329)。 收益不可测(FiraCode min 1.8346 vs 1.8439、思源 1.505 vs 1.479 均噪声内)—— lookupCount 级闭包非瓶颈,被 brotli/glyf transform 淹没。但消除语义冗余 + 统一两侧偏移槽写法。基准测试全 SSIM 一致、输出字节 IDENTICAL。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>