Add UTF8 support

This commit is contained in:
Samuel Dudik 2020-07-31 09:36:35 +02:00
parent 5505ac7d59
commit 384c1fae6d

View file

@ -90,7 +90,7 @@ int main(int argc, char *argv[])
if (event.type == Expose) if (event.type == Expose)
{ {
XClearWindow(display, window); 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) if (event.type == ButtonPress)
break; break;