changeset 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 4b5a8f3d1216
children edcf6efdc10a
files src/xftfont.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;
     }