(pos < (it->text_pos + it->text_props.text_len)))
{
int ret;
- ret = ENFN->font_char_coords_get(ENDT, o->font,
+ ret = ENFN->font_char_coords_get(ENC, o->font,
&it->text_props, pos - it->text_pos, x, y, w, h);
if (x) *x += it->x;
return ret;
{
if ((x <= cx) && (cx < x + it->adv))
{
- pos = it->text_pos + ENFN->font_last_up_to_pos(ENDT,
+ pos = it->text_pos + ENFN->font_last_up_to_pos(ENC,
o->font,
&it->text_props,
cx - x,
{
if ((it->x <= cx) && (cx < it->x + it->adv))
{
- return it->text_pos + ENFN->font_last_up_to_pos(ENDT,
+ return it->text_pos + ENFN->font_last_up_to_pos(ENC,
o->font,
&it->text_props,
cx - it->x,
{
if ((it->x <= cx) && (cx < it->x + it->adv))
{
- return it->text_pos + ENFN->font_char_at_coords_get(ENDT,
+ return it->text_pos + ENFN->font_char_at_coords_get(ENC,
o->font,
&it->text_props,
cx - it->x,
static void
_evas_object_text_item_update_sizes(Evas_Object_Protected_Data *obj, Evas_Text_Data *o, Evas_Object_Text_Item *it)
{
- ENFN->font_string_size_get(ENDT,
+ ENFN->font_string_size_get(ENC,
o->font,
&it->text_props,
&it->w, &it->h);
- it->adv = ENFN->font_h_advance_get(ENDT, o->font,
+ it->adv = ENFN->font_h_advance_get(ENC, o->font,
&it->text_props);
}
if (fi)
{
- ENFN->font_text_props_info_create(ENDT,
+ ENFN->font_text_props_info_create(ENC,
fi, str + pos, &it->text_props,
o->bidi_par_props, it->text_pos, len, EVAS_TEXT_PROPS_MODE_SHAPE,
o->cur.fdesc->lang);
if (o->font)
{
- (void) ENFN->font_run_end_get(ENDT, o->font, &script_fi, &cur_fi,
+ (void) ENFN->font_run_end_get(ENC, o->font, &script_fi, &cur_fi,
script, _ellip_str, 1);
ellip_ti = _evas_object_text_item_new(obj, o, cur_fi,
_ellip_str, script, 0, 0, len);
if (o->font)
{
run_len = ENFN->font_run_end_get
- (ENDT, o->font, &script_fi, &cur_fi,
+ (ENC, o->font, &script_fi, &cur_fi,
script, text + pos, script_len);
}
#ifdef BIDI_SUPPORT
}
if (itr && (itr != start_ellip_it))
{
- int cut = ENFN->font_last_up_to_pos(ENDT,
+ int cut = ENFN->font_last_up_to_pos(ENC,
o->font,
&itr->text_props,
ellipsis_coord - (advance + l + r),
int cut = -1;
if (itr && (itr != end_ellip_it))
{
- cut = ENFN->font_last_up_to_pos(ENDT,
+ cut = ENFN->font_last_up_to_pos(ENC,
o->font,
&itr->text_props,
ellip_frame - (advance + l + r),
Evas_Coord inset = 0;
if (!o->font) return inset;
if (!o->items) return inset;
- inset = ENFN->font_inset_get(ENDT, o->font, &o->items->text_props);
+ inset = ENFN->font_inset_get(ENC, o->font, &o->items->text_props);
return inset;
}
*/
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);
+ o->ascent = ENFN->font_ascent_get(ENC, o->font);
+ o->descent = ENFN->font_descent_get(ENC, o->font);
+ o->max_ascent = ENFN->font_max_ascent_get(ENC, o->font);
+ o->max_descent = ENFN->font_max_descent_get(ENC, o->font);
}
}
else 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);
+ o->ascent = ENFN->font_ascent_get(ENC, o->font);
+ o->descent = ENFN->font_descent_get(ENC, o->font);
+ o->max_ascent = ENFN->font_max_ascent_get(ENC, o->font);
+ o->max_descent = ENFN->font_max_descent_get(ENC, o->font);
}
if ((o->font) && (o->items))
}
else
{
- asc = ENFN->font_max_ascent_get(ENDT,
+ asc = ENFN->font_max_ascent_get(ENC,
it->format->font.font);
}
}
else
{
- desc = ENFN->font_max_descent_get(ENDT,
+ desc = ENFN->font_max_descent_get(ENC,
it->format->font.font);
}
{
if (fmt)
{
- asc = ENFN->font_ascent_get(ENDT, fmt->font.font);
- desc = ENFN->font_descent_get(ENDT, fmt->font.font);
+ asc = ENFN->font_ascent_get(ENC, fmt->font.font);
+ desc = ENFN->font_descent_get(ENC, fmt->font.font);
}
}
if (fmt) _layout_format_ascent_descent_adjust(obj, &asc, &desc, fmt);
c->marginr - from_x - ti->x_adjustment;
if (x < 0)
x = 0;
- return ENFN->font_last_up_to_pos(ENDT, fmt->font.font,
+ return ENFN->font_last_up_to_pos(ENC, fmt->font.font,
&ti->text_props, x, 0, width_offset);
}
return -1;
if (fmt->font.font)
{
- ENFN->font_string_size_get(ENDT, fmt->font.font,
+ ENFN->font_string_size_get(ENC, fmt->font.font,
&ti->text_props, &tw, &th);
- advw = ENFN->font_h_advance_get(ENDT, fmt->font.font,
+ advw = ENFN->font_h_advance_get(ENC, fmt->font.font,
&ti->text_props);
}
if (ti->parent.format->font.font)
{
- run_len = ENFN->font_run_end_get(ENDT,
+ run_len = ENFN->font_run_end_get(ENC,
ti->parent.format->font.font, &script_fi, &cur_fi,
script, str, script_len);
}
if (cur_fi)
{
- ENFN->font_text_props_info_create(ENDT,
+ ENFN->font_text_props_info_create(ENC,
cur_fi, str, &ti->text_props, c->par->bidi_props,
ti->parent.text_pos, run_len, EVAS_TEXT_PROPS_MODE_SHAPE,
ti->parent.format->font.fdesc->lang);
{
Evas_Object_Protected_Data *obj = c->evas_o;
/* It's only 1 char anyway, we don't need the run end. */
- (void) ENFN->font_run_end_get(ENDT,
+ (void) ENFN->font_run_end_get(ENC,
ellip_ti->parent.format->font.font, &script_fi, &cur_fi,
script, _ellip_str, len);
- ENFN->font_text_props_info_create(ENDT,
+ ENFN->font_text_props_info_create(ENC,
cur_fi, _ellip_str, &ellip_ti->text_props,
c->par->bidi_props, ellip_ti->parent.text_pos, len, EVAS_TEXT_PROPS_MODE_SHAPE,
ellip_ti->parent.format->font.fdesc->lang);
ti = (it->type == EVAS_TEXTBLOCK_ITEM_TEXT) ? _ITEM_TEXT(it) : NULL;
if (ti && ti->parent.format->font.font)
{
- pos = ENFN->font_last_up_to_pos(ENDT, ti->parent.format->font.font,
+ pos = ENFN->font_last_up_to_pos(ENC, ti->parent.format->font.font,
&ti->text_props, x, 0, width_offset);
}
return pos;
{
Evas_Object_Protected_Data *obj = c->evas_o;
/* It's only 1 char anyway, we don't need the run end. */
- (void) ENFN->font_run_end_get(ENDT,
+ (void) ENFN->font_run_end_get(ENC,
hyphen_ti->parent.format->font.font, &script_fi, &cur_fi,
script, _hyphen_str, len);
- ENFN->font_text_props_info_create(ENDT,
+ ENFN->font_text_props_info_create(ENC,
cur_fi, _hyphen_str, &hyphen_ti->text_props,
c->par->bidi_props, hyphen_ti->parent.text_pos, len, EVAS_TEXT_PROPS_MODE_SHAPE,
hyphen_ti->parent.format->font.fdesc->lang);
if (ti->parent.format->font.font)
{
Evas_Object_Protected_Data *obj = efl_data_scope_get(cur->obj, EFL_CANVAS_OBJECT_CLASS);
- query_func(ENDT,
+ query_func(ENC,
ti->parent.format->font.font,
&ti->text_props,
pos,
pos = -1;
if (ti->parent.format->font.font)
pos = ENFN->font_char_at_coords_get(
- ENDT,
+ ENC,
ti->parent.format->font.font,
&ti->text_props,
x - it->x - ln->x, 0,
ti = _ITEM_TEXT(it1);
if (ti->parent.format->font.font)
{
- ret = ENFN->font_pen_coords_get(ENDT,
+ ret = ENFN->font_pen_coords_get(ENC,
ti->parent.format->font.font,
&ti->text_props,
start,
{
return NULL;
}
- ret = ENFN->font_pen_coords_get(ENDT,
+ ret = ENFN->font_pen_coords_get(ENC,
ti->parent.format->font.font,
&ti->text_props,
end,
int ret;
ti = _ITEM_TEXT(it1);
- ret = ENFN->font_pen_coords_get(ENDT,
+ ret = ENFN->font_pen_coords_get(ENC,
ti->parent.format->font.font,
&ti->text_props,
start,
int ret;
ti = _ITEM_TEXT(it2);
- ret = ENFN->font_pen_coords_get(ENDT,
+ ret = ENFN->font_pen_coords_get(ENC,
ti->parent.format->font.font,
&ti->text_props,
end,
text->bold = is_bold;
text->italic = is_italic;
font = _textgrid_font_get(o, is_bold, is_italic);
- ENFN->font_run_end_get(ENDT, font, &script_fi, &cur_fi,
+ ENFN->font_run_end_get(ENC, font, &script_fi, &cur_fi,
script, &codepoint, 1);
memset(&(text->text_props), 0, sizeof(Evas_Text_Props));
evas_common_text_props_script_set(&(text->text_props), script);
- ENFN->font_text_props_info_create(ENDT, script_fi, &codepoint,
+ ENFN->font_text_props_info_create(ENC, script_fi, &codepoint,
&(text->text_props), NULL, 0, 1,
EVAS_TEXT_PROPS_MODE_NONE,
o->cur.font_description_normal->lang);
{
int tmp_size;
- gl_generic_window_use(engine);
+ gl_generic_window_find(engine);
tmp_size = evas_common_font_cache_get();
evas_common_font_cache_set(0);
evas_common_font_flush();
static void
eng_font_cache_set(void *engine, int bytes)
{
- gl_generic_window_use(engine);
+ gl_generic_window_find(engine);
evas_common_font_cache_set(bytes);
}
static int
eng_font_cache_get(void *engine)
{
- gl_generic_window_use(engine);
+ gl_generic_window_find(engine);
return evas_common_font_cache_get();
}