Add UTF8 support
This commit is contained in:
parent
5505ac7d59
commit
384c1fae6d
1 changed files with 1 additions and 1 deletions
2
herbe.c
2
herbe.c
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue