aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2009-04-06 07:57:46 +0000
committerKenichi Handa2009-04-06 07:57:46 +0000
commit0c26f026c83f0cc4193ed534cb6d70e65269e75f (patch)
treea503c12eec04a08062f006954e0e8cfc25d25c72 /src
parentcd0d52bcef0eea761fc5b46d45372a8a96417641 (diff)
downloademacs-0c26f026c83f0cc4193ed534cb6d70e65269e75f.tar.gz
emacs-0c26f026c83f0cc4193ed534cb6d70e65269e75f.zip
(ftfont_open): Fix checking of the return value of
FT_Load_Char. Fix setting font->underline_thickness.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/ftfont.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 22890338bea..643483905d1 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * ftfont.c (ftfont_open): Fix checking of the return value of
4 FT_Load_Char. Fix setting font->underline_thickness.
5
12009-04-04 Chong Yidong <cyd@stupidchicken.com> 62009-04-04 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name) 8 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
diff --git a/src/ftfont.c b/src/ftfont.c
index aa9777acf34..f515856bcba 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -1130,7 +1130,7 @@ ftfont_open (f, entity, pixel_size)
1130 1130
1131 font->min_width = font->average_width = font->space_width = 0; 1131 font->min_width = font->average_width = font->space_width = 0;
1132 for (i = 32, n = 0; i < 127; i++) 1132 for (i = 32, n = 0; i < 127; i++)
1133 if (FT_Load_Char (ft_face, i, FT_LOAD_DEFAULT) != 0) 1133 if (FT_Load_Char (ft_face, i, FT_LOAD_DEFAULT) == 0)
1134 { 1134 {
1135 int this_width = ft_face->glyph->metrics.horiAdvance >> 6; 1135 int this_width = ft_face->glyph->metrics.horiAdvance >> 6;
1136 1136
@@ -1153,7 +1153,7 @@ ftfont_open (f, entity, pixel_size)
1153 if (scalable) 1153 if (scalable)
1154 { 1154 {
1155 font->underline_position = -ft_face->underline_position * size / upEM; 1155 font->underline_position = -ft_face->underline_position * size / upEM;
1156 font->underline_thickness = -ft_face->underline_thickness * size / upEM; 1156 font->underline_thickness = ft_face->underline_thickness * size / upEM;
1157 } 1157 }
1158 else 1158 else
1159 { 1159 {