diff options
| author | Kenichi Handa | 2009-04-06 11:08:56 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-04-06 11:08:56 +0000 |
| commit | bc981e4e5acef4558cfa547256cb76097cd0e3d6 (patch) | |
| tree | a49d41ab67b831584142807f9b4ba75fece49c4d | |
| parent | 0c26f026c83f0cc4193ed534cb6d70e65269e75f (diff) | |
| download | emacs-bc981e4e5acef4558cfa547256cb76097cd0e3d6.tar.gz emacs-bc981e4e5acef4558cfa547256cb76097cd0e3d6.zip | |
(xftfont_open): Fix setting font->underline_thickness.
| -rw-r--r-- | src/xftfont.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 360 | int upEM = ft_face->units_per_EM; | 360 | int upEM = ft_face->units_per_EM; |
| 361 | 361 | ||
| 362 | font->underline_position = -ft_face->underline_position * size / upEM; | 362 | font->underline_position = -ft_face->underline_position * size / upEM; |
| 363 | font->underline_thickness = -ft_face->underline_thickness * size / upEM; | 363 | font->underline_thickness = ft_face->underline_thickness * size / upEM; |
| 364 | if (font->underline_thickness > 2) | 364 | if (font->underline_thickness > 2) |
| 365 | font->underline_position -= font->underline_thickness / 2; | 365 | font->underline_position -= font->underline_thickness / 2; |
| 366 | } | 366 | } |