summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-02-02 10:59:33 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-02-02 10:59:33 +0900
commitef2127c900398ab35972ec2ec622f2bcb85d010c (patch)
tree7579f2adf307cbd07511d54ec1ef7290c7664bf2
parentab712a9966e29cba2f75f7c7bc793057bf543f8e (diff)
evas - fix tom's bold-killer from 2cb9db171ead5bc9920234e27c2e12b7c7b3883a
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/evas_font_dir.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/evas/canvas/evas_font_dir.c b/src/lib/evas/canvas/evas_font_dir.c
index 37ea7bf5b1..f8298de468 100644
--- a/src/lib/evas/canvas/evas_font_dir.c
+++ b/src/lib/evas/canvas/evas_font_dir.c
@@ -481,28 +481,28 @@ evas_font_name_parse(Evas_Font_Description *fdesc, const char *name)
481 481
482 if (!strncmp(name, ":style=", 7)) 482 if (!strncmp(name, ":style=", 7))
483 { 483 {
484#define _SET_STYLE(x) \ 484#define _SET_STYLE(x, len) \
485 fdesc->x = _evas_font_style_find_internal(name + strlen(#x) + 2, tend, \ 485 fdesc->x = _evas_font_style_find_internal(name + len, tend, \
486 _style_##x##_map, _STYLE_MAP_LEN(_style_##x##_map)); 486 _style_##x##_map, _STYLE_MAP_LEN(_style_##x##_map));
487 _SET_STYLE(slant); 487 _SET_STYLE(slant, 7);
488 _SET_STYLE(weight); 488 _SET_STYLE(weight, 7);
489 _SET_STYLE(width); 489 _SET_STYLE(width, 7);
490 } 490 }
491 else if (!strncmp(name, ":slant=", 7)) 491 else if (!strncmp(name, ":slant=", 7))
492 { 492 {
493 _SET_STYLE(slant); 493 _SET_STYLE(slant, 7);
494 } 494 }
495 else if (!strncmp(name, ":weight=", 8)) 495 else if (!strncmp(name, ":weight=", 8))
496 { 496 {
497 _SET_STYLE(weight); 497 _SET_STYLE(weight, 8);
498 } 498 }
499 else if (!strncmp(name, ":width=", 7)) 499 else if (!strncmp(name, ":width=", 7))
500 { 500 {
501 _SET_STYLE(width); 501 _SET_STYLE(width, 7);
502 } 502 }
503 else if (!strncmp(name, ":spacing=", 9)) 503 else if (!strncmp(name, ":spacing=", 9))
504 { 504 {
505 _SET_STYLE(spacing); 505 _SET_STYLE(spacing, 9);
506#undef _SET_STYLE 506#undef _SET_STYLE
507 } 507 }
508 else if (!strncmp(name, ":lang=", 6)) 508 else if (!strncmp(name, ":lang=", 6))