From: Kenichi Handa Date: Mon, 25 Feb 2008 01:43:55 +0000 (+0000) Subject: (xftfont_draw): Pay attention to s->padding_p. X-Git-Tag: emacs-pretest-23.0.90~7686 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=785543daa7b74d96785a25ffca4d5d2158d79d2c;p=emacs.git (xftfont_draw): Pay attention to s->padding_p. --- diff --git a/src/xftfont.c b/src/xftfont.c index 3d854364617..55d0b943c13 100644 --- a/src/xftfont.c +++ b/src/xftfont.c @@ -522,8 +522,13 @@ xftfont_draw (s, from, to, x, y, with_background) code[i] = ((XCHAR2B_BYTE1 (s->char2b + from + i) << 8) | XCHAR2B_BYTE2 (s->char2b + from + i)); - XftDrawGlyphs (xft_draw, &fg, xftfont_info->xftfont, - x, y, code, len); + if (s->padding_p) + for (i = 0; i < len; i++) + XftDrawGlyphs (xft_draw, &fg, xftfont_info->xftfont, + x + i, y, code + i, 1); + else + XftDrawGlyphs (xft_draw, &fg, xftfont_info->xftfont, + x, y, code, len); UNBLOCK_INPUT; return len;