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);
156 while ((count = fscanf(file, "%1024s %[^\n]\n", file_name, font_name))
160 fclose(file);
166 fclose(file);
170 fclose(file);
197 FILE *file,
226 c = lexc(file);
268 ungetc(c, file);
276 lexc(FILE *file)
280 c = getc(file);
286 c = getc(file);
332 FILE *file,
341 token = lexAlias(file, &lexToken);
346 fclose(file);
353 token = lexAlias(file, &lexToken);
370 fclose(file);
504 FILE *file, *newfile;
512 file = fopen(aliasfile, "r");
513 if (!file)
514 return; /* fail silently -- if no alias file, we're done */
516 if (fstat (fileno(file), &statb) == -1)
524 ErrorF("Can't create new alias file %s\n", tmpfile);
528 while ((ret = ReadAliases(file, alias, font_name)) != FileClosed) {
563 fclose(file);
649 ErrorF("failed to process fonts.dir file in %s\n", directory);