path: root/src/lib/evas/common/evas_font.h
diff options
authorabdulleh Ghujeh <>2019-11-28 13:14:15 +0900
committerWooHyun Jung <>2019-11-28 13:14:15 +0900
commitf6caca1d70b750dcb73329fabcd8da01876d7a2f (patch)
tree270e4e6349aade773e7c9b728d97299540aa82b3 /src/lib/evas/common/evas_font.h
parent2ca6c301e4ad75f9a58432db75215d1d29c73bd4 (diff)
Efl Canvas Text : Modify Style Property
Summary: This patch defines the way style property will work at canvas_text object 1- Changing canvas_text style property using Font/Format/Style interfaces or with efl_canvas_text style property are the same. Example: ``` efl_text_font_set(tb, "Arial", 30); //is same as efl_canvas_text_style_set(tb, "font=Arial font_size=30"); //which means calling char * font; int size; int font_size; efl_text_font_get(tb, &font, &size); // calling this after any of the top two functions will return same result ``` 2- style_get_property Will return string that contains full details about all the current applied style at canvas_text level. 3- style_set_property Will only override passed styles and leave everything else as it is ``` efl_canvas_text_style_set(tb, "font=Arial"); // overrider font name to Arial and leave everthing else efl_canvas_text_style_set(tb, "font_size=30"); // overrider font size to 30 and leave everthing else (font name will stay arial) ``` Reviewers: ali.alzyod, woohyun, tasn, segfaultxavi, bu5hm4n, zmike Reviewed By: woohyun Subscribers: zmike, bu5hm4n, segfaultxavi, a.srour, cedric, #reviewers, #committers Tags: #efl Differential Revision:
Diffstat (limited to '')
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/evas/common/evas_font.h b/src/lib/evas/common/evas_font.h
index e16785520d..4588a31f0d 100644
--- a/src/lib/evas/common/evas_font.h
+++ b/src/lib/evas/common/evas_font.h
@@ -410,7 +410,8 @@ void evas_font_free(void *font);
410void evas_fonts_zero_free(); 410void evas_fonts_zero_free();
411void evas_fonts_zero_pressure(); 411void evas_fonts_zero_pressure();
412void evas_font_name_parse(Evas_Font_Description *fdesc, const char *name); 412void evas_font_name_parse(Evas_Font_Description *fdesc, const char *name);
413int evas_font_style_find(const char *start, const char *end, Evas_Font_Style style); 413unsigned int evas_font_style_find(const char *start, const char *end, Evas_Font_Style style);
414const char *evas_font_style_find_str(int type, Evas_Font_Style style);
414Evas_Font_Description *evas_font_desc_new(void); 415Evas_Font_Description *evas_font_desc_new(void);
415Evas_Font_Description *evas_font_desc_dup(const Evas_Font_Description *fdesc); 416Evas_Font_Description *evas_font_desc_dup(const Evas_Font_Description *fdesc);
416void evas_font_desc_unref(Evas_Font_Description *fdesc); 417void evas_font_desc_unref(Evas_Font_Description *fdesc);