efl_text_properties_font_set(font, size);
efl_text_set(text));
+ //TIZEN_ONLY(20160425): For fit option works well. the tw value should
+ // get a value that without ellipsis.
+ //part_get_geometry(ep, &tw, &th);
+ tw = evas_object_text_horiz_width_without_ellipsis_get(ep->object);
+ //
+
+ /* Find the wanted font size */
part_get_geometry(ep, &tw, &th);
/* Find the wanted font size */
if ((tw != sw) && (size > 0) && (tw != 0))
return inset;
}
+// TIZEN_ONLY(20160425): Fix Evas Text truncated text case and evas_object_text_horiz_width_get() is added.
+// horiz_advance_without_ellipsis is changed to horiz_width_without_ellipsis.
+EOLIAN static Evas_Coord
+_evas_text_horiz_width_without_ellipsis_get(Eo *eo_obj EINA_UNUSED, Evas_Text_Data *o)
+{
+ Evas_Coord horiz = 0;
+ if (!o->font) return horiz;
+ if (!o->items) return horiz;
+ horiz = _evas_object_text_horiz_width_without_ellipsis_get(o);
+
+ return horiz;
+}
+//
+
EOLIAN static Evas_Coord
_evas_text_horiz_advance_get(Eo *eo_obj EINA_UNUSED, Evas_Text_Data *o)
{
return: Evas.Coord;
}
}
+ @property horiz_width_without_ellipsis {
+ get {
+ [[
+ // TIZEN_ONLY(20160425): Fix Evas Text truncated text case and evas_object_text_horiz_width_get() is add ed.
+ // horiz_advance_without_ellipsis is changed to horiz_width_without_ellipsis.
+ ]]
+ return: Evas.Coord;
+ }
+ }
@property inset {
get {
return: Evas.Coord;