Lines Matching refs:file
50 * Ensure that a fonts.alias file only contains aliases for fonts that exist
51 * We do this by first reading in the fonts.dir file and then for
52 * each entry in the fonts.alias file we verify that the alias can
75 static int lexc(FILE *file);
88 /* Provide pseudo renderers for font file formats we may find in fonts.dir
131 FILE *file;
141 file = fopen(dir_file, "r");
142 if (file) {
143 if (fstat (fileno(file), &statb) == -1)
145 count = fscanf(file, "%d\n", &i);
147 fclose(file);
152 fclose(file);
157 fscanf(file, "%1023s %1023[^\n]\n", file_name, font_name))
161 fclose(file);
167 fclose(file);
171 fclose(file);
198 FILE *file,
227 c = lexc(file);
269 ungetc(c, file);
277 lexc(FILE *file)
281 c = getc(file);
287 c = getc(file);
333 FILE *file,
342 token = lexAlias(file, &lexToken);
347 fclose(file);
354 token = lexAlias(file, &lexToken);
371 fclose(file);
505 FILE *file, *newfile;
513 file = fopen(aliasfile, "r");
514 if (!file)
515 return; /* fail silently -- if no alias file, we're done */
517 if (fstat (fileno(file), &statb) == -1)
525 ErrorF("Can't create new alias file %s\n", tmpfile);
529 while ((ret = ReadAliases(file, alias, font_name)) != FileClosed) {
564 fclose(file);
650 ErrorF("failed to process fonts.dir file in %s\n", directory);