Lines Matching refs:fpe
111 if (fpe_functions[pfont->fpe->type].load_glyphs)
112 return (*fpe_functions[pfont->fpe->type].load_glyphs)
143 * an fpe needs to be added when it's inited, and removed when it's finally
151 QueueFontWakeup(FontPathElementPtr fpe)
157 if (slept_fpes[i] == fpe) {
170 slept_fpes[num_slept_fpes] = fpe;
175 RemoveFontWakeup(FontPathElementPtr fpe)
181 if (slept_fpes[i] == fpe) {
195 FontPathElementPtr fpe;
199 /* wake up any fpe's that may be waiting for information */
201 fpe = slept_fpes[i];
202 (void) (*fpe_functions[fpe->type].wakeup_fpe) (fpe, LastSelectMask);
208 UseFPE(FontPathElementPtr fpe)
210 fpe->refcount++;
214 FreeFPE (FontPathElementPtr fpe)
216 fpe->refcount--;
217 if (fpe->refcount == 0) {
218 (*fpe_functions[fpe->type].free_fpe) (fpe);
219 free(fpe->name);
220 free(fpe);
228 FontPathElementPtr fpe = NULL;
271 fpe = c->fpe_list[c->current_fpe];
272 (*fpe_functions[fpe->type].client_died) ((pointer) client, fpe);
278 fpe = c->fpe_list[c->current_fpe];
279 err = (*fpe_functions[fpe->type].open_font)
280 ((pointer) client, fpe, c->flags,
288 c->non_cachable_font && c->non_cachable_font->fpe == fpe ?
340 if (!pfont->fpe)
341 pfont->fpe = fpe;
344 UseFPE(pfont->fpe);
466 FontPathElementPtr fpe;
488 fpe = pfont->fpe;
489 (*fpe_functions[fpe->type].close_font) (fpe, pfont);
490 FreeFPE(fpe);
569 FontPathElementPtr fpe;
586 fpe = c->fpe_list[c->current.current_fpe];
587 (*fpe_functions[fpe->type].client_died) ((pointer) client, fpe);
597 fpe = c->fpe_list[c->current.current_fpe];
600 if (!fpe_functions[fpe->type].start_list_fonts_and_aliases)
604 err = (*fpe_functions[fpe->type].list_fonts)
605 ((pointer) c->client, fpe, c->current.pattern,
633 err = (*fpe_functions[fpe->type].start_list_fonts_and_aliases)
634 ((pointer) c->client, fpe, c->current.pattern,
652 err = (*fpe_functions[fpe->type].list_next_font_or_alias)
653 ((pointer) c->client, fpe, &name, &namelen, &tmpname,
706 (void) (*fpe_functions[fpe->type].list_next_font_or_alias)
707 ((pointer) c->client, fpe, &tmpname, &tmpnamelen,
877 FontPathElementPtr fpe;
895 fpe = c->fpe_list[c->current.current_fpe];
896 (*fpe_functions[fpe->type].client_died) ((pointer) client, fpe);
906 fpe = c->fpe_list[c->current.current_fpe];
910 err = (*fpe_functions[fpe->type].start_list_fonts_with_info)
911 (client, fpe, c->current.pattern, c->current.patlen,
929 err = (*fpe_functions[fpe->type].list_next_font_with_info)
930 (client, fpe, &name, &namelen, &pFontInfo,
964 (void) (*fpe_functions[fpe->type].list_next_font_with_info)
965 (client, fpe, &tmpname, &tmpnamelen, &tmpFontInfo,
1157 FontPathElementPtr fpe;
1163 fpe = c->pGC->font->fpe;
1164 (*fpe_functions[fpe->type].client_died) ((pointer) client, fpe);
1191 fpe = c->pGC->font->fpe;
1192 (*fpe_functions[fpe->type].client_died) ((pointer) client, fpe);
1449 FontPathElementPtr fpe;
1454 fpe = c->pGC->font->fpe;
1455 (*fpe_functions[fpe->type].client_died) ((pointer) client, fpe);
1468 fpe = c->pGC->font->fpe;
1469 (*fpe_functions[fpe->type].client_died) ((pointer) client, fpe);
1600 /* does the necessary magic to figure out the fpe type */
1641 FontPathElementPtr fpe;
1645 fpe = list[i];
1646 if (fpe->name_length == len && memcmp(name, fpe->name, len) == 0)
1647 return fpe;
1660 FontPathElementPtr fpe = NULL, *fplist;
1688 fpe = find_existing_fpe(font_path_elements, num_fpes, cp, len);
1689 if (fpe)
1691 err = (*fpe_functions[fpe->type].reset_fpe) (fpe);
1694 UseFPE(fpe);/* since it'll be decref'd later when freed
1698 fpe = 0;
1701 if (!fpe)
1703 fpe = malloc(sizeof(FontPathElementRec));
1704 if (!fpe)
1709 fpe->name = malloc(len + 1);
1710 if (!fpe->name)
1712 free(fpe);
1716 fpe->refcount = 1;
1718 strncpy(fpe->name, (char *) cp, (int) len);
1719 fpe->name[len] = '\0';
1720 fpe->name_length = len;
1721 fpe->type = DetermineFPEType(fpe->name);
1722 if (fpe->type == -1)
1725 err = (*fpe_functions[fpe->type].init_fpe) (fpe);
1731 fpe->name);
1733 free(fpe->name);
1734 free(fpe);
1745 fplist[valid_paths++] = fpe;
1857 FontPathElementPtr fpe;
1865 fpe = font_path_elements[i];
1866 len += fpe->name_length + 1;
1875 fpe = font_path_elements[i];
1876 *c = fpe->name_length;
1878 memmove(c, fpe->name, fpe->name_length);
1879 c += fpe->name_length;
1890 FontPathElementPtr fpe;
1894 fpe = font_path_elements[i];
1895 if (fpe_functions[fpe->type].client_died)
1896 (*fpe_functions[fpe->type].client_died) ((pointer) client, fpe);
1942 * returns the type index of the new fpe
1944 * should be called (only once!) by each type of fpe when initialized
2049 init_fs_handlers(FontPathElementPtr fpe, BlockHandlerProcPtr block_handler)
2062 QueueFontWakeup(fpe);
2067 remove_fs_handlers(FontPathElementPtr fpe, BlockHandlerProcPtr block_handler, Bool all)
2076 RemoveFontWakeup(fpe);