Lines Matching refs:fpe
112 if (fpe_functions[pfont->fpe->type]->load_glyphs)
113 return (*fpe_functions[pfont->fpe->type]->load_glyphs)
153 * an fpe needs to be added when it's inited, and removed when it's finally
161 QueueFontWakeup(FontPathElementPtr fpe)
167 if (slept_fpes[i] == fpe) {
179 slept_fpes[num_slept_fpes] = fpe;
184 RemoveFontWakeup(FontPathElementPtr fpe)
189 if (slept_fpes[i] == fpe) {
203 FontPathElementPtr fpe;
207 /* wake up any fpe's that may be waiting for information */
209 fpe = slept_fpes[i];
210 (void) (*fpe_functions[fpe->type]->wakeup_fpe) (fpe);
216 UseFPE(FontPathElementPtr fpe)
218 fpe->refcount++;
222 FreeFPE(FontPathElementPtr fpe)
224 fpe->refcount--;
225 if (fpe->refcount == 0) {
226 (*fpe_functions[fpe->type]->free_fpe) (fpe);
227 free((void *) fpe->name);
228 free(fpe);
236 FontPathElementPtr fpe = NULL;
269 fpe = c->fpe_list[c->current_fpe];
270 (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe);
276 fpe = c->fpe_list[c->current_fpe];
277 err = (*fpe_functions[fpe->type]->open_font)
278 ((void *) client, fpe, c->flags,
286 c->non_cachable_font && c->non_cachable_font->fpe == fpe ?
335 if (!pfont->fpe)
336 pfont->fpe = fpe;
339 UseFPE(pfont->fpe);
457 FontPathElementPtr fpe;
479 fpe = pfont->fpe;
480 (*fpe_functions[fpe->type]->close_font) (fpe, pfont);
481 FreeFPE(fpe);
555 FontPathElementPtr fpe;
570 fpe = c->fpe_list[c->current.current_fpe];
571 (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe);
581 fpe = c->fpe_list[c->current.current_fpe];
584 if (!fpe_functions[fpe->type]->start_list_fonts_and_aliases) {
587 err = (*fpe_functions[fpe->type]->list_fonts)
588 ((void *) c->client, fpe, c->current.pattern,
612 err = (*fpe_functions[fpe->type]->start_list_fonts_and_aliases)
613 ((void *) c->client, fpe, c->current.pattern,
630 err = (*fpe_functions[fpe->type]->list_next_font_or_alias)
631 ((void *) c->client, fpe, &name, &namelen, &tmpname,
680 (void) (*fpe_functions[fpe->type]->list_next_font_or_alias)
681 ((void *) c->client, fpe, &tmpname, &tmpnamelen,
846 FontPathElementPtr fpe;
861 fpe = c->fpe_list[c->current.current_fpe];
862 (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe);
871 fpe = c->fpe_list[c->current.current_fpe];
874 err = (*fpe_functions[fpe->type]->start_list_fonts_with_info)
875 (client, fpe, c->current.pattern, c->current.patlen,
889 err = (*fpe_functions[fpe->type]->list_next_font_with_info)
890 (client, fpe, &name, &namelen, &pFontInfo,
919 (void) (*fpe_functions[fpe->type]->list_next_font_with_info)
920 (client, fpe, &tmpname, &tmpnamelen, &tmpFontInfo,
1100 FontPathElementPtr fpe;
1105 fpe = c->pGC->font->fpe;
1106 (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe);
1131 fpe = c->pGC->font->fpe;
1132 (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe);
1379 FontPathElementPtr fpe;
1383 fpe = c->pGC->font->fpe;
1384 (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe);
1397 fpe = c->pGC->font->fpe;
1398 (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe);
1517 /* does the necessary magic to figure out the fpe type */
1559 FontPathElementPtr fpe;
1563 fpe = list[i];
1564 if (fpe->name_length == len && memcmp(name, fpe->name, len) == 0)
1565 return fpe;
1577 FontPathElementPtr fpe = NULL, *fplist;
1603 fpe = find_existing_fpe(font_path_elements, num_fpes, cp, len);
1604 if (fpe) {
1605 err = (*fpe_functions[fpe->type]->reset_fpe) (fpe);
1607 UseFPE(fpe); /* since it'll be decref'd later when freed
1611 fpe = 0;
1614 if (!fpe) {
1616 fpe = malloc(sizeof(FontPathElementRec));
1617 if (!fpe) {
1623 free(fpe);
1627 fpe->refcount = 1;
1631 fpe->name = name;
1632 fpe->name_length = len;
1633 fpe->type = DetermineFPEType(fpe->name);
1634 if (fpe->type == -1)
1637 err = (*fpe_functions[fpe->type]->init_fpe) (fpe);
1642 fpe->name);
1644 free((void *) fpe->name);
1645 free(fpe);
1654 fplist[valid_paths++] = fpe;
1764 FontPathElementPtr fpe;
1772 fpe = font_path_elements[i];
1773 len += fpe->name_length + 1;
1785 fpe = font_path_elements[i];
1786 *c = fpe->name_length;
1788 memmove(c, fpe->name, fpe->name_length);
1789 c += fpe->name_length;
1800 FontPathElementPtr fpe;
1803 fpe = font_path_elements[i];
1804 if (fpe_functions[fpe->type]->client_died)
1805 (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe);
1987 _init_fs_handlers(FontPathElementPtr fpe, FontBlockHandlerProcPtr block_handler)
2001 QueueFontWakeup(fpe);
2006 _remove_fs_handlers(FontPathElementPtr fpe, FontBlockHandlerProcPtr block_handler,
2016 RemoveFontWakeup(fpe);