If you have no fonts in fontconfig, it returns NULL... believe me, it
does happen.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@36029
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
/* do matching */
set = FcFontSort(NULL, p_nm, FcTrue, NULL, &res);
+ if (!set)
+ {
+ fprintf(stderr, "ERROR: no fontconfig font matches '%s'. It was the last resource, no font found!\n", name);
+ goto fc_end;
+ }
/* Do loading for all in family */
for (i = 0; i < set->nfont; i++)
}
FcFontSetDestroy(set);
+ fc_end:
FcPatternDestroy(p_nm);
}
#endif