UNPKG

fonteditor-core

Version:

fonts (ttf, woff, woff2, eot, svg, otf) parse, write, transform, glyph adjust.

40 lines (35 loc) 1.02 kB
/** * @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; } } );