From ed2f825ca00da45d0aa5135f32595b32c238e4a2 Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Thu, 14 May 2026 19:12:36 +0200 Subject: [PATCH] WINGs/wfont_wl: fix text y-offset in draw_image_string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- WINGs/wfont_wl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WINGs/wfont_wl.c b/WINGs/wfont_wl.c index 8d5f121..9dd549c 100644 --- a/WINGs/wfont_wl.c +++ b/WINGs/wfont_wl.c @@ -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); }