if (--(fdesc->ref) == 0)
{
eina_stringshare_del(fdesc->name);
+ eina_stringshare_del(fdesc->style);
eina_stringshare_del(fdesc->fallbacks);
eina_stringshare_del(fdesc->lang);
free(fdesc);
#define _SET_STYLE(x, len) \
fdesc->x = _evas_font_style_find_internal(name + len, tend, \
_style_##x##_map, _STYLE_MAP_LEN(_style_##x##_map));
+ eina_stringshare_replace_length(&(fdesc->style), name + 7, tend - (name + 7));
_SET_STYLE(slant, 7);
_SET_STYLE(weight, 7);
_SET_STYLE(width, 7);
NULL);
FcPatternAddString (p_nm, FC_FAMILY, (FcChar8*) fdesc->name);
+ if (fdesc->style)
+ FcPatternAddString (p_nm, FC_STYLE, (FcChar8*) fdesc->style);
+
/* Handle font fallbacks */
if (fdesc->fallbacks)
{