aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xfont.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 435c09f0ff8..55636cc9f40 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-09-29 Kenichi Handa <handa@m17n.org>
2
3 * xfont.c (xfont_open): Fix setting of font->average_width from
4 :avgwidth property (Bug#7123).
5
12010-09-26 Jan Djärv <jan.h.d@swipnet.se> 62010-09-26 Jan Djärv <jan.h.d@swipnet.se>
2 7
3 * xgselect.c (xg_select): Clear file descriptors not set from 8 * xgselect.c (xg_select): Clear file descriptors not set from
diff --git a/src/xfont.c b/src/xfont.c
index d8fe40eaa93..a676cd29c82 100644
--- a/src/xfont.c
+++ b/src/xfont.c
@@ -861,7 +861,7 @@ xfont_open (f, entity, pixel_size)
861 861
862 val = Ffont_get (font_object, QCavgwidth); 862 val = Ffont_get (font_object, QCavgwidth);
863 if (INTEGERP (val)) 863 if (INTEGERP (val))
864 font->average_width = XINT (val); 864 font->average_width = XINT (val) / 10;
865 if (font->average_width < 0) 865 if (font->average_width < 0)
866 font->average_width = - font->average_width; 866 font->average_width = - font->average_width;
867 if (font->average_width == 0 867 if (font->average_width == 0