* When the font is originally configured it is set to "". after a restart
the font will be read from eet as NULL. I need to check for this.
SVN revision: 22203
if (!strcmp(tc->class_name, efd->text_class))
{
- tc->font = evas_stringshare_add(efd->font);
- tc->size = efd->size;
- tc->enabled = 1;
+ if (efd->font)
+ tc->font = evas_stringshare_add(efd->font);
+ else
+ tc->font = evas_stringshare_add("");
+
+ tc->size = efd->size;
+ tc->enabled = 1;
}
}
if (!tc->enabled)
{
efd = e_font_default_get(tc->class_name);
- if (efd)
+ if (efd && efd->font)
{
tc->font = evas_stringshare_add(efd->font);
tc->size = efd->size;