o->font = evas_font_load(obj->layer->evas->evas, o->cur.fdesc, o->cur.source,
(int)(((double) o->cur.size) * obj->cur->scale));
- if (o->font)
- {
- o->ascent = ENFN->font_ascent_get(ENDT, o->font);
- o->descent = ENFN->font_descent_get(ENDT, o->font);
- o->max_ascent = ENFN->font_max_ascent_get(ENDT, o->font);
- o->max_descent = ENFN->font_max_descent_get(ENDT, o->font);
- }
- else
{
o->ascent = 0;
o->descent = 0;
if (desc > o->descent)
o->descent = desc;
- max_asc = evas_common_font_instance_max_ascent_get(item->text_props.font_instance);
- max_desc = evas_common_font_instance_max_descent_get(item->text_props.font_instance);
-
- if (max_asc > o->max_ascent)
- o->max_ascent = max_asc;
- if (max_desc > o->max_descent)
- o->max_descent = max_desc;
+ o->max_ascent = o->ascent;
+ o->max_descent = o->descent;
}
}