From c40b55ef57c332f4937d1571ba9939c37f77b473 Mon Sep 17 00:00:00 2001 From: katalx Date: Fri, 30 Jan 2026 21:35:47 -0500 Subject: use Xutf8TextEscapement for ft_width --- ui.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ui.c') diff --git a/ui.c b/ui.c index f3e3eb8..5587700 100644 --- a/ui.c +++ b/ui.c @@ -94,9 +94,7 @@ ft_ascent_descent(XFontSet fs, int *asc, int *desc) static inline int ft_width(XFontSet f, const char *s, int n) { - XRectangle ink, log; - Xutf8TextExtents(f, s, n, &ink, &log); - return log.width; + return Xutf8TextEscapement(f, s, n); } static inline void -- cgit v1.2.3