Lines Matching refs:fpe

112     if (fpe_functions[pfont->fpe->type]->load_glyphs)  in LoadGlyphs()
113 return (*fpe_functions[pfont->fpe->type]->load_glyphs) in LoadGlyphs()
161 QueueFontWakeup(FontPathElementPtr fpe) in QueueFontWakeup() argument
167 if (slept_fpes[i] == fpe) { in QueueFontWakeup()
179 slept_fpes[num_slept_fpes] = fpe; in QueueFontWakeup()
184 RemoveFontWakeup(FontPathElementPtr fpe) in RemoveFontWakeup() argument
189 if (slept_fpes[i] == fpe) { in RemoveFontWakeup()
203 FontPathElementPtr fpe; in FontWakeup() local
209 fpe = slept_fpes[i]; in FontWakeup()
210 (void) (*fpe_functions[fpe->type]->wakeup_fpe) (fpe); in FontWakeup()
216 UseFPE(FontPathElementPtr fpe) in UseFPE() argument
218 fpe->refcount++; in UseFPE()
222 FreeFPE(FontPathElementPtr fpe) in FreeFPE() argument
224 fpe->refcount--; in FreeFPE()
225 if (fpe->refcount == 0) { in FreeFPE()
226 (*fpe_functions[fpe->type]->free_fpe) (fpe); in FreeFPE()
227 free((void *) fpe->name); in FreeFPE()
228 free(fpe); in FreeFPE()
236 FontPathElementPtr fpe = NULL; in doOpenFont() local
269 fpe = c->fpe_list[c->current_fpe]; in doOpenFont()
270 (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe); in doOpenFont()
276 fpe = c->fpe_list[c->current_fpe]; in doOpenFont()
277 err = (*fpe_functions[fpe->type]->open_font) in doOpenFont()
278 ((void *) client, fpe, c->flags, in doOpenFont()
286 c->non_cachable_font && c->non_cachable_font->fpe == fpe ? in doOpenFont()
335 if (!pfont->fpe) in doOpenFont()
336 pfont->fpe = fpe; in doOpenFont()
339 UseFPE(pfont->fpe); in doOpenFont()
457 FontPathElementPtr fpe; in CloseFont() local
479 fpe = pfont->fpe; in CloseFont()
480 (*fpe_functions[fpe->type]->close_font) (fpe, pfont); in CloseFont()
481 FreeFPE(fpe); in CloseFont()
555 FontPathElementPtr fpe; in doListFontsAndAliases() local
570 fpe = c->fpe_list[c->current.current_fpe]; in doListFontsAndAliases()
571 (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe); in doListFontsAndAliases()
581 fpe = c->fpe_list[c->current.current_fpe]; in doListFontsAndAliases()
584 if (!fpe_functions[fpe->type]->start_list_fonts_and_aliases) { in doListFontsAndAliases()
587 err = (*fpe_functions[fpe->type]->list_fonts) in doListFontsAndAliases()
588 ((void *) c->client, fpe, c->current.pattern, in doListFontsAndAliases()
612 err = (*fpe_functions[fpe->type]->start_list_fonts_and_aliases) in doListFontsAndAliases()
613 ((void *) c->client, fpe, c->current.pattern, in doListFontsAndAliases()
630 err = (*fpe_functions[fpe->type]->list_next_font_or_alias) in doListFontsAndAliases()
631 ((void *) c->client, fpe, &name, &namelen, &tmpname, in doListFontsAndAliases()
680 (void) (*fpe_functions[fpe->type]->list_next_font_or_alias) in doListFontsAndAliases()
681 ((void *) c->client, fpe, &tmpname, &tmpnamelen, in doListFontsAndAliases()
846 FontPathElementPtr fpe; in doListFontsWithInfo() local
861 fpe = c->fpe_list[c->current.current_fpe]; in doListFontsWithInfo()
862 (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe); in doListFontsWithInfo()
871 fpe = c->fpe_list[c->current.current_fpe]; in doListFontsWithInfo()
874 err = (*fpe_functions[fpe->type]->start_list_fonts_with_info) in doListFontsWithInfo()
875 (client, fpe, c->current.pattern, c->current.patlen, in doListFontsWithInfo()
889 err = (*fpe_functions[fpe->type]->list_next_font_with_info) in doListFontsWithInfo()
890 (client, fpe, &name, &namelen, &pFontInfo, in doListFontsWithInfo()
919 (void) (*fpe_functions[fpe->type]->list_next_font_with_info) in doListFontsWithInfo()
920 (client, fpe, &tmpname, &tmpnamelen, &tmpFontInfo, in doListFontsWithInfo()
1100 FontPathElementPtr fpe; in doPolyText() local
1105 fpe = c->pGC->font->fpe; in doPolyText()
1106 (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe); in doPolyText()
1131 fpe = c->pGC->font->fpe; in doPolyText()
1132 (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe); in doPolyText()
1379 FontPathElementPtr fpe; in doImageText() local
1383 fpe = c->pGC->font->fpe; in doImageText()
1384 (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe); in doImageText()
1397 fpe = c->pGC->font->fpe; in doImageText()
1398 (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe); in doImageText()
1559 FontPathElementPtr fpe; in find_existing_fpe() local
1563 fpe = list[i]; in find_existing_fpe()
1564 if (fpe->name_length == len && memcmp(name, fpe->name, len) == 0) in find_existing_fpe()
1565 return fpe; in find_existing_fpe()
1577 FontPathElementPtr fpe = NULL, *fplist; in SetFontPathElements() local
1603 fpe = find_existing_fpe(font_path_elements, num_fpes, cp, len); in SetFontPathElements()
1604 if (fpe) { in SetFontPathElements()
1605 err = (*fpe_functions[fpe->type]->reset_fpe) (fpe); in SetFontPathElements()
1607 UseFPE(fpe); /* since it'll be decref'd later when freed in SetFontPathElements()
1611 fpe = 0; in SetFontPathElements()
1614 if (!fpe) { in SetFontPathElements()
1616 fpe = malloc(sizeof(FontPathElementRec)); in SetFontPathElements()
1617 if (!fpe) { in SetFontPathElements()
1623 free(fpe); in SetFontPathElements()
1627 fpe->refcount = 1; in SetFontPathElements()
1631 fpe->name = name; in SetFontPathElements()
1632 fpe->name_length = len; in SetFontPathElements()
1633 fpe->type = DetermineFPEType(fpe->name); in SetFontPathElements()
1634 if (fpe->type == -1) in SetFontPathElements()
1637 err = (*fpe_functions[fpe->type]->init_fpe) (fpe); in SetFontPathElements()
1642 fpe->name); in SetFontPathElements()
1644 free((void *) fpe->name); in SetFontPathElements()
1645 free(fpe); in SetFontPathElements()
1654 fplist[valid_paths++] = fpe; in SetFontPathElements()
1763 FontPathElementPtr fpe; in GetFontPath() local
1771 fpe = font_path_elements[i]; in GetFontPath()
1772 len += fpe->name_length + 1; in GetFontPath()
1784 fpe = font_path_elements[i]; in GetFontPath()
1785 *c = fpe->name_length; in GetFontPath()
1787 memmove(c, fpe->name, fpe->name_length); in GetFontPath()
1788 c += fpe->name_length; in GetFontPath()
1799 FontPathElementPtr fpe; in DeleteClientFontStuff() local
1802 fpe = font_path_elements[i]; in DeleteClientFontStuff()
1803 if (fpe_functions[fpe->type]->client_died) in DeleteClientFontStuff()
1804 (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe); in DeleteClientFontStuff()
1986 _init_fs_handlers(FontPathElementPtr fpe, FontBlockHandlerProcPtr block_handler) in _init_fs_handlers() argument
2000 QueueFontWakeup(fpe); in _init_fs_handlers()
2005 _remove_fs_handlers(FontPathElementPtr fpe, FontBlockHandlerProcPtr block_handler, in _remove_fs_handlers() argument
2015 RemoveFontWakeup(fpe); in _remove_fs_handlers()