mirror of
https://github.com/2234839/web-font.git
synced 2026-07-02 14:08:24 +08:00
添加注释
This commit is contained in:
parent
976a68f189
commit
03107af2dd
@ -18,6 +18,7 @@ function writeSubTable0(writer, unicodes) {
|
||||
view.setUint16(pos, 0, false); pos += 2;
|
||||
view.setUint16(pos, 262, false); pos += 2;
|
||||
view.setUint16(pos, 0, false); pos += 2;
|
||||
/** 必须同步 writer.offset,否则 writeEmpty 会从错误偏移写入,导致 format0 实际大小比 sizeof 预计算的 262 少 6 字节,后续所有表偏移错位 */
|
||||
writer.offset = pos;
|
||||
|
||||
/** 优化218: 使用 writer.writeEmpty 批量填充 0,替代逐字节 setUint8 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user