From 384c1fae6d5c5f1cbc4ec8ce3e6246d4365073e7 Mon Sep 17 00:00:00 2001 From: Samuel Dudik Date: Fri, 31 Jul 2020 09:36:35 +0200 Subject: [PATCH] Add UTF8 support --- herbe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/herbe.c b/herbe.c index 3888ec2..9ab2eb3 100644 --- a/herbe.c +++ b/herbe.c @@ -90,7 +90,7 @@ int main(int argc, char *argv[]) if (event.type == Expose) { XClearWindow(display, window); - XftDrawString8(draw, &color, font, text_padding, height - text_padding, (XftChar8 *)argv[1], strlen(argv[1])); + XftDrawStringUtf8(draw, &color, font, text_padding, height - text_padding, (XftChar8 *)argv[1], strlen(argv[1])); } if (event.type == ButtonPress) break;