Commit 18acb5ad authored by Kenichi Handa's avatar Kenichi Handa
Browse files

xfont.c (xfont_open): Fix setting of font->average_width from :avgwidth property (Bug#7123).

parent fd057fd2
2010-09-29 Kenichi Handa <handa@m17n.org>
* xfont.c (xfont_open): Fix setting of font->average_width from
:avgwidth property (Bug#7123).
2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
* xgselect.c (xg_select): Clear file descriptors not set from
......
......@@ -861,7 +861,7 @@ xfont_open (f, entity, pixel_size)
val = Ffont_get (font_object, QCavgwidth);
if (INTEGERP (val))
font->average_width = XINT (val);
font->average_width = XINT (val) / 10;
if (font->average_width < 0)
font->average_width = - font->average_width;
if (font->average_width == 0
......
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