Lines Matching defs:tables
88 TableDirectoryEntry tables[1];
209 if (dataLength < offsetof(sfntHeader, tables))
214 if (dataLength < offsetof(sfntHeader, tables) + sfnt->numTables * sizeof(TableDirectoryEntry))
231 unsigned tableOffset = sfnt->tables[i].offset;
232 unsigned tableLength = sfnt->tables[i].length;
237 unsigned tableTag = sfnt->tables[i].tag;
353 if (sfnt->tables[t].tag == 'name')
370 rewrittenSfnt->tables[t].length = nameTableSize;
371 rewrittenSfnt->tables[t].offset = originalDataSize;
397 rewrittenSfnt->tables[t].checkSum = 0;
399 rewrittenSfnt->tables[t].checkSum = rewrittenSfnt->tables[t].checkSum + reinterpret_cast<BigEndianULong*>(name)[i];
409 // abort if the data is too small to be a font header with a "tables" entry
410 if (fontData->size() < offsetof(sfntHeader, tables))
413 // abort if the data is too small to hold all the tables specified in the header
415 if (fontData->size() < offsetof(sfntHeader, tables) + header->numTables * sizeof(TableDirectoryEntry))