mirror of
https://github.com/2234839/web-font.git
synced 2026-09-19 08:25:50 +08:00
优化310 快路径下 endPtsOfContours 数组仅用于算 _totalPoints(供 maxPoints metrics), 下游 optimizettf 快路径分支、sizeof/write 原始字节拷贝均不消费它。 直接读最后一个 endPt(vOff+10+(numContours-1)*2)算 _totalPoints, 省掉每个 simple 字形的 Array 分配 + numContours 次 getUint16 循环。 千字文 ttf 0.252→0.246ms,ttf 字节输出 cmp 完全一致,SSIM 全部不变。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>