Lines Matching refs:tables

34990     this.tables = Object.create(null);
35015 var tables = this.tables;
35016 var tablesNames = Object.keys(tables);
35024 table = tables[tablesNames[i]];
35033 table = tables[tablesNames[i]];
35067 writeInt32(file, offset + 12, tables[tableName].length);
35074 if (tag in this.tables) {
35078 this.tables[tag] = data;
35778 var tables = Object.create(null);
35779 tables['OS/2'] = null;
35780 tables['cmap'] = null;
35781 tables['head'] = null;
35782 tables['hhea'] = null;
35783 tables['hmtx'] = null;
35784 tables['maxp'] = null;
35785 tables['name'] = null;
35786 tables['post'] = null;
35799 tables[table.tag] = table;
35802 return tables;
35897 tables: potentialTables
36814 var header, tables;
36819 tables = ttcData.tables;
36822 tables = readTables(font, header.numTables);
36826 var isTrueType = !tables['CFF '];
36831 …eader.version === 'OTTO' && !isComposite || !tables['head'] || !tables['hhea'] || !tables['maxp'] …
36832 cffFile = new _stream.Stream(tables['CFF '].data);
36838 delete tables['glyf'];
36839 delete tables['loca'];
36840 delete tables['fpgm'];
36841 delete tables['prep'];
36842 delete tables['cvt '];
36845 if (!tables['loca']) {
36849 if (!tables['glyf']) {
36851 tables['glyf'] = {
36860 if (!tables['maxp']) {
36864 font.pos = (font.start || 0) + tables['maxp'].offset;
36879 if (version >= 0x00010000 && tables['maxp'].length >= 22) {
36884 tables['maxp'].data[14] = 0;
36885 tables['maxp'].data[15] = 2;
36894 tables['maxp'].data[4] = numGlyphsOut >> 8;
36895 tables['maxp'].data[5] = numGlyphsOut & 255;
36896 …var hintsValid = sanitizeTTPrograms(tables['fpgm'], tables['prep'], tables['cvt '], maxFunctionDef…
36899 delete tables['fpgm'];
36900 delete tables['prep'];
36901 delete tables['cvt '];
36904 sanitizeMetrics(font, tables['hhea'], tables['hmtx'], numGlyphsOut, dupFirstEntry);
36906 if (!tables['head']) {
36910 sanitizeHead(tables['head'], numGlyphs, isTrueType ? tables['loca'].length : 0);
36914 var isGlyphLocationsLong = int16(tables['head'].data[50], tables['head'].data[51]);
36915 …var glyphsInfo = sanitizeGlyphLocations(tables['loca'], tables['glyf'], numGlyphs, isGlyphLocation…
36918 if (version >= 0x00010000 && tables['maxp'].length >= 22) {
36919 tables['maxp'].data[26] = glyphsInfo.maxSizeOfInstructions >> 8;
36920 tables['maxp'].data[27] = glyphsInfo.maxSizeOfInstructions & 255;
36924 if (!tables['hhea']) {
36928 if (tables['hhea'].data[10] === 0 && tables['hhea'].data[11] === 0) {
36929 tables['hhea'].data[10] = 0xFF;
36930 tables['hhea'].data[11] = 0xFF;
36934 unitsPerEm: int16(tables['head'].data[18], tables['head'].data[19]),
36935 yMax: int16(tables['head'].data[42], tables['head'].data[43]),
36936 yMin: signedInt16(tables['head'].data[38], tables['head'].data[39]),
36937 ascent: int16(tables['hhea'].data[4], tables['hhea'].data[5]),
36938 descent: signedInt16(tables['hhea'].data[6], tables['hhea'].data[7])
36943 if (tables['post']) {
36944 readPostScriptTable(tables['post'], properties, numGlyphs);
36947 tables['post'] = {
36979 … var cmapTable = readCmapTable(tables['cmap'], font, this.isSymbolicFont, properties.hasEncoding);
37071 tables['cmap'] = {
37076 if (!tables['OS/2'] || !validateOS2Table(tables['OS/2'])) {
37077 tables['OS/2'] = {
37085 cffFile = new _stream.Stream(tables['CFF '].data);
37090 tables['CFF '].data = compiler.compile();
37096 if (!tables['name']) {
37097 tables['name'] = {
37102 var namePrototype = readNameTable(tables['name']);
37103 tables['name'].data = createNameTable(name, namePrototype);
37108 for (var tableTag in tables) {
37109 builder.addTable(tableTag, tables[tableTag].data);
38955 function CFFDict(tables, strings) {
38956 this.keyToNameMap = tables.keyToNameMap;
38957 this.nameToKeyMap = tables.nameToKeyMap;
38958 this.defaults = tables.defaults;
38959 this.types = tables.types;
38960 this.opcodes = tables.opcodes;
38961 this.order = tables.order;
39023 var tables = {
39035 tables.keyToNameMap[key] = entry[1];
39036 tables.nameToKeyMap[entry[1]] = key;
39037 tables.types[key] = entry[2];
39038 tables.defaults[key] = entry[3];
39039 tables.opcodes[key] = Array.isArray(entry[0]) ? entry[0] : [entry[0]];
39040 tables.order.push(key);
39043 return tables;
39051 var tables = null;
39054 if (tables === null) {
39055 tables = CFFDict.createTables(layout);
39058 CFFDict.call(this, tables, strings);
39070 var tables = null;
39073 if (tables === null) {
39074 tables = CFFDict.createTables(layout);
39077 CFFDict.call(this, tables, strings);