aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xftfont.c9
1 files changed, 7 insertions, 2 deletions
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)
522 code[i] = ((XCHAR2B_BYTE1 (s->char2b + from + i) << 8) 522 code[i] = ((XCHAR2B_BYTE1 (s->char2b + from + i) << 8)
523 | XCHAR2B_BYTE2 (s->char2b + from + i)); 523 | XCHAR2B_BYTE2 (s->char2b + from + i));
524 524
525 XftDrawGlyphs (xft_draw, &fg, xftfont_info->xftfont, 525 if (s->padding_p)
526 x, y, code, len); 526 for (i = 0; i < len; i++)
527 XftDrawGlyphs (xft_draw, &fg, xftfont_info->xftfont,
528 x + i, y, code + i, 1);
529 else
530 XftDrawGlyphs (xft_draw, &fg, xftfont_info->xftfont,
531 x, y, code, len);
527 UNBLOCK_INPUT; 532 UNBLOCK_INPUT;
528 533
529 return len; 534 return len;