Evas text: Fixed vert advance get in cases of mixed scripts with different ascents/descents.

SVN revision: 56527
This commit is contained in:
Tom Hacohen 2011-01-30 10:44:17 +00:00
parent 8871470af7
commit 61e6f43f66
1 changed files with 2 additions and 16 deletions

View File

@ -260,24 +260,10 @@ _evas_object_text_horiz_advance_get(const Evas_Object *obj,
/* FIXME: doc */
static Evas_Coord
_evas_object_text_vert_advance_get(const Evas_Object *obj,
_evas_object_text_vert_advance_get(const Evas_Object *obj __UNUSED__,
const Evas_Object_Text *o)
{
Evas_Object_Text_Item *it;
Evas_Coord adv;
adv = 0;
EINA_INLIST_FOREACH(EINA_INLIST_GET(o->items), it)
{
Evas_Coord tmp;
tmp = ENFN->font_v_advance_get(ENDT, o->engine_data, it->text,
&it->text_props);
if (tmp > adv)
{
adv = tmp;
}
}
return adv;
return o->max_ascent + o->max_descent;
}
/* FIXME: returns the advance instead of the width just because it's usuallly