From: Kenichi Handa Date: Mon, 6 Apr 2009 11:08:56 +0000 (+0000) Subject: (xftfont_open): Fix setting font->underline_thickness. X-Git-Tag: emacs-pretest-23.0.93~218 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bc981e4e5acef4558cfa547256cb76097cd0e3d6;p=emacs.git (xftfont_open): Fix setting font->underline_thickness. --- diff --git a/src/xftfont.c b/src/xftfont.c index 9474283c218..e533fd73791 100644 --- a/src/xftfont.c +++ b/src/xftfont.c @@ -360,7 +360,7 @@ xftfont_open (f, entity, pixel_size) 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; }