Lines Matching defs:tables

128     PCFTablePtr tables;
142 tables = mallocarray(count, sizeof(PCFTableRec));
143 if (!tables) {
144 pcfError("pcfReadTOC(): Couldn't allocate tables (%d*%d)\n",
149 tables[i].type = pcfGetLSB32(file);
150 tables[i].format = pcfGetLSB32(file);
151 tables[i].size = pcfGetLSB32(file);
152 tables[i].offset = pcfGetLSB32(file);
157 return tables;
160 free(tables);
204 pcfSeekToType(FontFilePtr file, PCFTablePtr tables, int ntables,
210 if (tables[i].type == type) {
211 if (position > tables[i].offset)
213 if (!FontFileSkip(file, tables[i].offset - position))
215 position = tables[i].offset;
216 *sizep = tables[i].size;
217 *formatp = tables[i].format;
224 pcfHasType (PCFTablePtr tables, int ntables, CARD32 type)
229 if (tables[i].type == type)
243 PCFTablePtr tables, int ntables)
256 if (!pcfSeekToType(file, tables, ntables, PCF_PROPERTIES, &format, &size))
352 PCFTablePtr tables, int ntables, CARD32 type)
357 if (!pcfSeekToType(file, tables, ntables, type, &format, &size) ||
406 PCFTablePtr tables = 0;
426 if (!(tables = pcfReadTOC(file, &ntables)))
431 if (!pcfGetProperties(&pFont->info, file, tables, ntables))
436 hasBDFAccelerators = pcfHasType (tables, ntables, PCF_BDF_ACCELERATORS);
438 if (!pcfGetAccel (&pFont->info, file, tables, ntables, PCF_ACCELERATORS))
443 if (!pcfSeekToType(file, tables, ntables, PCF_METRICS, &format, &size)) {
477 if (!pcfSeekToType(file, tables, ntables, PCF_BITMAPS, &format, &size))
563 if (pcfSeekToType(file, tables, ntables, PCF_INK_METRICS, &format, &size)) {
595 if (!pcfSeekToType(file, tables, ntables, PCF_BDF_ENCODINGS, &format, &size))
641 if (!pcfGetAccel (&pFont->info, file, tables, ntables, PCF_BDF_ACCELERATORS))
684 free(tables);
700 free(tables);
708 PCFTablePtr tables;
719 if (!(tables = pcfReadTOC(file, &ntables)))
724 if (!pcfGetProperties(pFontInfo, file, tables, ntables))
729 hasBDFAccelerators = pcfHasType (tables, ntables, PCF_BDF_ACCELERATORS);
731 if (!pcfGetAccel (pFontInfo, file, tables, ntables, PCF_ACCELERATORS))
736 if (!pcfSeekToType(file, tables, ntables, PCF_BDF_ENCODINGS, &format, &size))
766 if (!pcfGetAccel (pFontInfo, file, tables, ntables, PCF_BDF_ACCELERATORS))
769 free(tables);
775 free(tables);