Lines Matching refs:fpe
127 test_init_fs_handlers(FontPathElementPtr fpe,
133 /* Callback from libXfont when each fpe handler is registered */
151 test_remove_fs_handlers(FontPathElementPtr fpe,
257 /* does the necessary magic to figure out the fpe type */
300 FontPathElementPtr fpe = calloc(1, sizeof(FontPathElementRec));
301 assert(fpe != NULL);
303 fpe->name = strdup(font_paths[i]);
304 assert(fpe->name != NULL);
305 fpe->name_length = strlen(fpe->name);
306 assert(fpe->name_length > 0);
309 if (fpe->name_length > (int) sizeof("/fonts.dir")) {
310 char *tail = fpe->name + fpe->name_length -
317 fullpath = realpath(fpe->name, NULL);
319 free(fpe->name);
320 fpe->name = fullpath;
321 fpe->name_length = strlen(fpe->name);
322 assert(fpe->name_length > 0);
325 fpe->type = DetermineFPEType(fpe->name);
326 if (fpe->type == -1)
328 fpe->name);
329 result = (*fpe_functions[fpe->type]->init_fpe) (fpe);
332 fpe->name, result);
334 printf("Initialized font path element #%d: %s\n", i, fpe->name);
335 fpe_list[i] = fpe;