Lines Matching defs:tables

126     PCFTablePtr tables;
140 tables = malloc(count * sizeof(PCFTableRec));
141 if (!tables) {
142 pcfError("pcfReadTOC(): Couldn't allocate tables (%d*%d)\n",
147 tables[i].type = pcfGetLSB32(file);
148 tables[i].format = pcfGetLSB32(file);
149 tables[i].size = pcfGetLSB32(file);
150 tables[i].offset = pcfGetLSB32(file);
155 return tables;
158 free(tables);
202 pcfSeekToType(FontFilePtr file, PCFTablePtr tables, int ntables,
208 if (tables[i].type == type) {
209 if (position > tables[i].offset)
211 if (!FontFileSkip(file, tables[i].offset - position))
213 position = tables[i].offset;
214 *sizep = tables[i].size;
215 *formatp = tables[i].format;
222 pcfHasType (PCFTablePtr tables, int ntables, CARD32 type)
227 if (tables[i].type == type)
241 PCFTablePtr tables, int ntables)
254 if (!pcfSeekToType(file, tables, ntables, PCF_PROPERTIES, &format, &size))
350 PCFTablePtr tables, int ntables, CARD32 type)
355 if (!pcfSeekToType(file, tables, ntables, type, &format, &size) ||
404 PCFTablePtr tables = 0;
424 if (!(tables = pcfReadTOC(file, &ntables)))
429 if (!pcfGetProperties(&pFont->info, file, tables, ntables))
434 hasBDFAccelerators = pcfHasType (tables, ntables, PCF_BDF_ACCELERATORS);
436 if (!pcfGetAccel (&pFont->info, file, tables, ntables, PCF_ACCELERATORS))
441 if (!pcfSeekToType(file, tables, ntables, PCF_METRICS, &format, &size)) {
475 if (!pcfSeekToType(file, tables, ntables, PCF_BITMAPS, &format, &size))
561 if (pcfSeekToType(file, tables, ntables, PCF_INK_METRICS, &format, &size)) {
593 if (!pcfSeekToType(file, tables, ntables, PCF_BDF_ENCODINGS, &format, &size))
639 if (!pcfGetAccel (&pFont->info, file, tables, ntables, PCF_BDF_ACCELERATORS))
682 free(tables);
698 free(tables);
706 PCFTablePtr tables;
717 if (!(tables = pcfReadTOC(file, &ntables)))
722 if (!pcfGetProperties(pFontInfo, file, tables, ntables))
727 hasBDFAccelerators = pcfHasType (tables, ntables, PCF_BDF_ACCELERATORS);
729 if (!pcfGetAccel (pFontInfo, file, tables, ntables, PCF_ACCELERATORS))
734 if (!pcfSeekToType(file, tables, ntables, PCF_BDF_ENCODINGS, &format, &size))
764 if (!pcfGetAccel (pFontInfo, file, tables, ntables, PCF_BDF_ACCELERATORS))
767 free(tables);
773 free(tables);