From 562af9bcf562e96364b8c56dac475bdb26d833a1 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 7 Feb 2008 01:14:21 +0000 Subject: [PATCH] (ftxfont_open): Don't set dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0. --- src/ftxfont.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } -- 2.39.5