]> git.eshelyaron.com Git - emacs.git/commitdiff
(xftfont_draw): Pay attention to s->padding_p.
authorKenichi Handa <handa@m17n.org>
Mon, 25 Feb 2008 01:43:55 +0000 (01:43 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 25 Feb 2008 01:43:55 +0000 (01:43 +0000)
src/xftfont.c

index 3d854364617c0ead30c02d4e6f0aacb602efe506..55d0b943c13af084425e9668fa7a357b7e6cc1c3 100644 (file)
@@ -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;