diff --git a/legacy/evas/src/lib/canvas/evas_object_textblock.c b/legacy/evas/src/lib/canvas/evas_object_textblock.c index f863f11a1e..4ae8abde05 100644 --- a/legacy/evas/src/lib/canvas/evas_object_textblock.c +++ b/legacy/evas/src/lib/canvas/evas_object_textblock.c @@ -6598,7 +6598,7 @@ evas_textblock_cursor_char_geometry_get(const Evas_Textblock_Cursor *cur, Evas_C pos, &x, &y, &w, &h); } - x += ln->x + it->x - it->inset; + x += ln->x + it->x; if (x < ln->x) { x = ln->x; @@ -7251,9 +7251,9 @@ evas_object_textblock_render(Evas_Object *obj, void *output, void *context, void yoff = (it->format->valign * (double)(ln->h - it->h)) + it->baseline; \ if (clip) \ { \ - if ((obj->cur.geometry.x + x + ln->x + it->x - it->inset + it->w) < (cx - 20)) \ + if ((obj->cur.geometry.x + x + ln->x + it->x + it->w) < (cx - 20)) \ continue; \ - if ((obj->cur.geometry.x + x + ln->x + it->x - it->inset) > (cx + cw + 20)) \ + if ((obj->cur.geometry.x + x + ln->x + it->x) > (cx + cw + 20)) \ break; \ } @@ -7274,7 +7274,7 @@ evas_object_textblock_render(Evas_Object *obj, void *output, void *context, void (obj->cur.cache.clip.a * it->format->color.col.a * (amul)) / 65025); # define DRAW_TEXT(ox, oy) \ if (it->format->font.font) ENFN->font_draw(output, context, surface, it->format->font.font, \ - obj->cur.geometry.x + ln->x + it->x - it->inset + x + (ox), \ + obj->cur.geometry.x + ln->x + it->x + x + (ox), \ obj->cur.geometry.y + ln->y + yoff + y + (oy), \ it->w, it->h, it->w, it->h, it->text, &it->bidi_props); # if 0 diff --git a/legacy/evas/src/lib/engines/common/evas_font_query.c b/legacy/evas/src/lib/engines/common/evas_font_query.c index 7bb882228e..d23f127beb 100644 --- a/legacy/evas/src/lib/engines/common/evas_font_query.c +++ b/legacy/evas/src/lib/engines/common/evas_font_query.c @@ -440,8 +440,8 @@ evas_common_font_query_char_coords(RGBA_Font *fn, const Eina_Unicode *in_text, c last_adv = fg->glyph->advance.x >> 16; } if (kern < 0) kern = 0; - chr_x = (pen_x - kern); - chr_y = (pen_y); + chr_x = (pen_x - kern) + (fg->glyph_out->left); + chr_y = (pen_y) + (fg->glyph_out->top); chr_w = fg->glyph_out->bitmap.width + (kern); /* if (text[chr]) */ {