Page MenuHomePhabricator

Use the new Efl2.Canvas.Text_Style in the legacy functions
Open, Incoming QueuePublic

Description

At the moment, we have the style object for Canvas.Text and for Textblock. These should be merged by just replacing the evas_textblock_style_* functions to use the new Eo object internally and adjusting Textblock/Edje as needed.
This will make it possible to use Edje styles with new textblock too.

The main difference is that the old style text object accepts a string for the whole style rather than split to different parts, so for example:

evas_textblock_style_set(ts, "DEFAULT='font_size=12 font_family=Sans' b='font_weight=Bold'");

Will become:

efl2_canvas_text-style_properties_set(ts, "font_size=12 font_family=Sans");
efl2_canvas_text-style_tag_set(ts, "b", NULL, "font_weight=Bold");
tasn created this task.Oct 11 2019, 12:28 AM
zmike moved this task from Backlog to Evaluating on the efl: api board.Oct 14 2019, 5:56 AM
ali.alzyod moved this task from Evaluating to Backlog on the efl: api board.Feb 5 2020, 12:20 AM