Mercurial > emacs
diff src/xftfont.c @ 102861:0ea82e792866
(xftfont_open): Fix setting font->underline_thickness.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 06 Apr 2009 11:08:56 +0000 |
parents | 97c9e9322753 |
children | 64cdf8a83bdd |
line wrap: on
line diff
--- a/src/xftfont.c Mon Apr 06 07:57:46 2009 +0000 +++ b/src/xftfont.c Mon Apr 06 11:08:56 2009 +0000 @@ -360,7 +360,7 @@ int upEM = ft_face->units_per_EM; font->underline_position = -ft_face->underline_position * size / upEM; - font->underline_thickness = -ft_face->underline_thickness * size / upEM; + font->underline_thickness = ft_face->underline_thickness * size / upEM; if (font->underline_thickness > 2) font->underline_position -= font->underline_thickness / 2; }