Permalink
Browse files

Fix wrong font metrics for mouse highlight (backport 106677 from trunk)

* src/xftfont.c (xftfont_draw): Use the font metrics of s->font to
fill background (Bug#8992).
  • Loading branch information...
1 parent 2d52b63 commit 167feff85e85103f982fbecc79733bedb8a6c2e9 @mituharu mituharu committed with Chong Yidong Jan 15, 2012
Showing with 6 additions and 1 deletion.
  1. +5 −0 src/ChangeLog
  2. +1 −1 src/xftfont.c
View
@@ -1,3 +1,8 @@
+2012-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+
+ * xftfont.c (xftfont_draw): Use the font metrics of s->font to
+ fill background (Bug#8992).
+
2012-01-13 Kenichi Handa <handa@m17n.org>
* character.c (char_width): New function.
View
@@ -689,7 +689,7 @@ xftfont_draw (s, from, to, x, y, with_background)
if (with_background)
XftDrawRect (xft_draw, &bg,
- x, y - face->font->ascent, s->width, face->font->height);
+ x, y - s->font->ascent, s->width, s->font->height);
code = alloca (sizeof (FT_UInt) * len);
for (i = 0; i < len; i++)
code[i] = ((XCHAR2B_BYTE1 (s->char2b + from + i) << 8)

0 comments on commit 167feff

Please sign in to comment.