Commit bc981e4e authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(xftfont_open): Fix setting font->underline_thickness.

parent 0c26f026
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment