Files
NapCatQQ/.pnpm-store/v3/files/39/712c6431ae1b32c5a27ee4251e8f23467c805ef9f728f07538d62fd1c2070e7b93ca135a2d987f4612825b21d62323fffae6a38d6f65eeb6f4d1e95d0c8de2
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

40 lines
1021 B
Plaintext

/**
* @file maxp 表
* @author mengke01(kekee000@gmail.com)
*/
import table from './table';
import struct from './struct';
export default table.create(
'maxp',
[
['version', struct.Fixed],
['numGlyphs', struct.Uint16],
['maxPoints', struct.Uint16],
['maxContours', struct.Uint16],
['maxCompositePoints', struct.Uint16],
['maxCompositeContours', struct.Uint16],
['maxZones', struct.Uint16],
['maxTwilightPoints', struct.Uint16],
['maxStorage', struct.Uint16],
['maxFunctionDefs', struct.Uint16],
['maxInstructionDefs', struct.Uint16],
['maxStackElements', struct.Uint16],
['maxSizeOfInstructions', struct.Uint16],
['maxComponentElements', struct.Uint16],
['maxComponentDepth', struct.Int16]
],
{
write(writer, ttf) {
table.write.call(this, writer, ttf.support);
return writer;
},
size() {
return 32;
}
}
);