Mercurial > emacs
changeset 92184:6218afb021ac
(xftfont_draw): Pay attention to s->padding_p.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 25 Feb 2008 01:43:55 +0000 |
parents | 275e5e980fc4 |
children | 1e28008a13e5 |
files | src/xftfont.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xftfont.c Mon Feb 25 01:43:02 2008 +0000 +++ b/src/xftfont.c Mon Feb 25 01:43:55 2008 +0000 @@ -522,8 +522,13 @@ 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;