WINGs/wfont_wl: fix text y-offset in draw_image_string

Don't add ascent offset — pango_ft2_render_layout renders from the
top of the layout, not from the baseline. The extra ascent was
pushing text below the visible area of the text field.
This commit is contained in:
Levi Neely 2026-05-14 19:12:36 +02:00
parent 1037fc0630
commit ed2f825ca0
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ wl_draw_image_string(void *sctx, void *handle, WMDrawable d,
pixman_image_unref(bsolid);
/* Draw text on top. */
wl_draw_string(sctx, handle, d, x, y + ((FontHandleWL *)handle)->ascent,
wl_draw_string(sctx, handle, d, x, y,
tr, tg, tb, ta, tpix, text, len);
}