*fmt = c->o->default_format.format;
fmt->ref = 1;
fmt->font.bitmap_scalable = _FMT_INFO(bitmap_scalable);
- /* TIZEN_ONLY(20180509): Fix default values for text alignment */
- fmt->halign = 0.0;
- fmt->halign_auto = EINA_TRUE;
- fmt->valign = -1.0;
+
+ /* TIZEN_ONLY(20190617): The initialized halign and halign_auto caused
+ * that the halign value given by halign_set was not applied.
+ * To keep backward compatibility and to resolve the bug, halign and
+ * halign_auto are initialized only for legacy textblock. */
+ Evas_Object_Protected_Data *obj;
+ obj = efl_data_scope_get(c->obj, EFL_CANVAS_OBJECT_CLASS);
+ if (obj->legacy.ctor)
+ {
+ /* TIZEN_ONLY(20180509): Fix default values for text alignment */
+ fmt->halign = 0.0;
+ fmt->halign_auto = EINA_TRUE;
+ fmt->valign = -1.0;
+ /* END */
+ }
/* END */
// Apply font if specified