From 57240cc03b69ed9ac2439b7d53cdf7ba95bb92ff Mon Sep 17 00:00:00 2001 From: Cedric Roux <cedric.roux@eurecom.fr> Date: Thu, 9 Jun 2016 17:33:43 +0200 Subject: [PATCH] switch to utf-8 --- common/utils/T/tracer/gui/x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/utils/T/tracer/gui/x.c b/common/utils/T/tracer/gui/x.c index 6f87de4420..af3d05cc14 100644 --- a/common/utils/T/tracer/gui/x.c +++ b/common/utils/T/tracer/gui/x.c @@ -331,7 +331,7 @@ void x_text_get_dimensions(x_connection *_c, int font, const char *t, struct x_connection *c = _c; XGlyphInfo ext; - XftTextExtents8(c->d, c->fonts[font], (FcChar8 *)t, strlen(t), &ext); + XftTextExtentsUtf8(c->d, c->fonts[font], (FcChar8 *)t, strlen(t), &ext); *width = ext.width; *height = c->fonts[font]->height; @@ -372,7 +372,7 @@ void x_draw_string(x_connection *_c, x_window *_w, int font, int color, struct x_connection *c = _c; struct x_window *w = _w; int tlen = strlen(t); - XftDrawString8(w->xft, &c->xft_colors[color], c->fonts[font], + XftDrawStringUtf8(w->xft, &c->xft_colors[color], c->fonts[font], x, y, (const unsigned char *)t, tlen); } -- GitLab