Commit 785543da authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(xftfont_draw): Pay attention to s->padding_p.

parent b876ea91
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment