Evas_Font_Set *font = NULL;
Eina_List *fonts, *l;
Fndat *fd;
+ Fndat *found_fd = NULL;
char *nm;
Font_Rend_Flags wanted_rend = 0;
#ifdef HAVE_FONTCONFIG
else if (fd->set && fd->p_nm)
{
- font = evas_load_fontconfig(evas, fd->set, size,
- wanted_rend);
- goto on_find;
+ found_fd = fd;
}
#endif
}
}
}
+ if (found_fd)
+ {
+ font = evas_load_fontconfig(evas, found_fd->set, size, wanted_rend);
+ goto on_find;
+ }
+
EINA_LIST_FOREACH(fonts_zero, l, fd)
{
if (!evas_font_desc_cmp(fdesc, fd->fdesc))
#ifdef HAVE_FONTCONFIG
else if (fd->set && fd->p_nm)
{
- font = evas_load_fontconfig(evas, fd->set, size,
- wanted_rend);
- goto on_find;
+ found_fd = fd;
}
#endif
}
}
}
+ if (found_fd)
+ {
+ font = evas_load_fontconfig(evas, found_fd->set, size, wanted_rend);
+ goto on_find;
+ }
+
fonts = evas_font_set_get(fdesc->name);
EINA_LIST_FOREACH(fonts, l, nm) /* Load each font in append */
{