summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/evas/canvas/evas_font_dir.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_font_dir.c b/src/lib/evas/canvas/evas_font_dir.c
index d258232885..51db3ad051 100644
--- a/src/lib/evas/canvas/evas_font_dir.c
+++ b/src/lib/evas/canvas/evas_font_dir.c
@@ -466,11 +466,23 @@ evas_font_name_parse(Evas_Font_Description *fdesc, const char *name)
466 if (!strncmp(name, ":style=", 7)) 466 if (!strncmp(name, ":style=", 7))
467 { 467 {
468#define _SET_STYLE(x) \ 468#define _SET_STYLE(x) \
469 fdesc->x = _evas_font_style_find_internal(name + 7, tend, \ 469 fdesc->x = _evas_font_style_find_internal(name + strlen(#x) + 2, tend, \
470 _style_##x##_map, _STYLE_MAP_LEN(_style_##x##_map)); 470 _style_##x##_map, _STYLE_MAP_LEN(_style_##x##_map));
471 _SET_STYLE(slant); 471 _SET_STYLE(slant);
472 _SET_STYLE(weight); 472 _SET_STYLE(weight);
473 _SET_STYLE(width); 473 _SET_STYLE(width);
474 }
475 else if (!strncmp(name, ":slant=", 7))
476 {
477 _SET_STYLE(slant);
478 }
479 else if (!strncmp(name, ":weight=", 8))
480 {
481 _SET_STYLE(weight);
482 }
483 else if (!strncmp(name, ":width=", 7))
484 {
485 _SET_STYLE(width);
474#undef _SET_STYLE 486#undef _SET_STYLE
475 } 487 }
476 else if (!strncmp(name, ":lang=", 6)) 488 else if (!strncmp(name, ":lang=", 6))