From 7b891200c17a501ed1641a1300164785f5898a22 Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 13 Apr 2015 03:33:54 +0200 Subject: A bit more experimentation with alignment --- src/XUtil.hsc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/XUtil.hsc') diff --git a/src/XUtil.hsc b/src/XUtil.hsc index 914ebdd..41ba087 100644 --- a/src/XUtil.hsc +++ b/src/XUtil.hsc @@ -184,8 +184,8 @@ printString dpy drw fs@(Xft fonts) _ fc bc x y s al = do when (al == 255) $ do (a,d) <- textExtents fs s gi <- xftTxtExtents' dpy fonts s - drawXftRect draw bc' x (y - a) (xglyphinfo_xOff gi) (a + d + 1) - drawXftString' draw fc' fonts (toInteger x) (toInteger (y - 1)) s + drawXftRect draw bc' x (y - a + 1) (xglyphinfo_xOff gi) (a + d + 1) + drawXftString' draw fc' fonts (toInteger x) (toInteger y) s #endif -- cgit v1.2.3