summaryrefslogtreecommitdiff
path: root/src/ftxfont.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2008-02-07 01:14:21 +0000
committerKenichi Handa <handa@m17n.org>2008-02-07 01:14:21 +0000
commit562af9bcf562e96364b8c56dac475bdb26d833a1 (patch)
tree99ec556b34e3b743637fee2eb83e356fc9fa9a41 /src/ftxfont.c
parent06a1ab15d61873f25387c8828725a2fe7fa2312e (diff)
downloademacs-562af9bcf562e96364b8c56dac475bdb26d833a1.tar.gz
(ftxfont_open): Don't set
dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
Diffstat (limited to 'src/ftxfont.c')
-rw-r--r--src/ftxfont.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ftxfont.c b/src/ftxfont.c
index 49222fdb514..da56ef0faee 100644
--- a/src/ftxfont.c
+++ b/src/ftxfont.c
@@ -351,6 +351,14 @@ ftxfont_open (f, entity, pixel_size)
dpyinfo->smallest_char_width = font->min_width, fonts_changed_p |= 1;
}
+ if (fonts_changed_p)
+ {
+ if (dpyinfo->smallest_font_height == 0)
+ dpyinfo->smallest_font_height = 1;
+ if (dpyinfo->smallest_char_width == 0)
+ dpyinfo->smallest_char_width = 1;
+ }
+
return font;
}