herdsman pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ba45b93b1eaa9f1709d1c94f03762363aad81692

commit ba45b93b1eaa9f1709d1c94f03762363aad81692
Author: Daniel Hirt <[email protected]>
Date:   Wed May 31 10:50:55 2017 +0300

    Ui text: set some default font and size
    
    This should later be setup through the theme.
    One option will be to use global text classes.
    Until the above is finalized, at least set this font and size to make
    setup of the widget a bit easier.
---
 src/lib/elementary/efl_ui_text.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/lib/elementary/efl_ui_text.c b/src/lib/elementary/efl_ui_text.c
index 0d015c2aec..b3c80fdd75 100644
--- a/src/lib/elementary/efl_ui_text.c
+++ b/src/lib/elementary/efl_ui_text.c
@@ -2979,6 +2979,11 @@ _efl_ui_text_efl_canvas_group_group_add(Eo *obj, 
Efl_Ui_Text_Data *priv)
    text_obj = efl_add(EFL_UI_INTERNAL_TEXT_INTERACTIVE_CLASS, obj);
    efl_composite_attach(obj, text_obj);
 
+   // FIXME: use the theme, when a proper theming option is available
+   //  (possibly, text_classes).
+   // For now, set this for easier setup
+   efl_text_font_set(text_obj, "Sans", 12);
+
    efl_canvas_group_add(efl_super(obj, MY_CLASS));
    elm_widget_sub_object_parent_add(obj);
 

-- 


Reply via email to