Lines Matching refs:fontdirs
340 char **x11Path, **fontdirs;
356 fontdirs = (char**)calloc(nPaths+1, sizeof(char*));
385 fontdirs[pos] = strdup(x11Path[i]);
386 slen = strlen(fontdirs[pos]);
387 if (slen > 0 && fontdirs[pos][slen-1] == '/') {
388 fontdirs[pos][slen-1] = '\0'; /* null out trailing "/" */
395 free(fontdirs);
396 fontdirs = NULL;
398 return fontdirs;
418 char **ptr, **fontdirs;
435 fontdirs = (char**)calloc(totalLen, sizeof(char*));
441 fontdirs[numDirs++] = p1[i];
451 if (strcmp(fontdirs[j], p2[i]) == 0) {
457 fontdirs[numDirs++] = p2[i];
468 if (strcmp(fontdirs[j], p3[i]) == 0) {
474 fontdirs[numDirs++] = p3[i];
478 /* Now fontdirs contains unique dirs and numDirs records how many.
483 pathLen += (strlen(fontdirs[i]) + 1);
491 strcat(fontPath, fontdirs[i]);
494 free (fontdirs);
738 char **fontdirs;
806 fontdirs = (char**)calloc(fontSet->nfont+1, sizeof(char*));
815 if (strcmp(fontdirs[i], (char*)dir) == 0) {
821 fontdirs[numdirs++] = (char*)dir;
832 return fontdirs;