static const char *font_sourcestr = NULL;
static const char *font_weightstr = NULL;
static const char *font_stylestr = NULL;
+static const char *font_widthstr = NULL;
static const char *colorstr = NULL;
static const char *underline_colorstr = NULL;
static const char *underline2_colorstr = NULL;
font_sourcestr = eina_stringshare_add("font_source");
font_weightstr = eina_stringshare_add("font_weight");
font_stylestr = eina_stringshare_add("font_style");
+ font_widthstr = eina_stringshare_add("font_width");
colorstr = eina_stringshare_add("color");
underline_colorstr = eina_stringshare_add("underline_color");
underline2_colorstr = eina_stringshare_add("underline2_color");
eina_stringshare_del(font_sourcestr);
eina_stringshare_del(font_weightstr);
eina_stringshare_del(font_stylestr);
+ eina_stringshare_del(font_widthstr);
eina_stringshare_del(colorstr);
eina_stringshare_del(underline_colorstr);
eina_stringshare_del(underline2_colorstr);
_format_clean_param(tmp_param, param);
/* If we are changing the font, create the fdesc. */
- if ((cmd == font_weightstr) || (cmd == font_stylestr) || (cmd == fontstr))
+ if ((cmd == font_weightstr) || (cmd == font_widthstr) ||
+ (cmd == font_stylestr) || (cmd == fontstr))
{
if (!fmt->font.fdesc)
{
fmt->font.fdesc->slant = evas_font_style_find(tmp_param,
tmp_param + strlen(tmp_param), EVAS_FONT_STYLE_SLANT);
}
+ if (cmd == font_widthstr)
+ {
+ fmt->font.fdesc->width = evas_font_style_find(tmp_param,
+ tmp_param + strlen(tmp_param), EVAS_FONT_STYLE_WIDTH);
+ }
else if (cmd == colorstr)
_format_color_parse(tmp_param,
&(fmt->color.normal.r), &(fmt->color.normal.g),