Mercurial > emacs
comparison src/xftfont.c @ 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 | 21cc6c5f4996 |
children | 8cbdb26068b4 |
comparison
equal
deleted
inserted
replaced
92183:275e5e980fc4 | 92184:6218afb021ac |
---|---|
520 code = alloca (sizeof (FT_UInt) * len); | 520 code = alloca (sizeof (FT_UInt) * len); |
521 for (i = 0; i < len; i++) | 521 for (i = 0; i < len; i++) |
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; |
530 } | 535 } |
531 | 536 |