changeset 91605:ffe8367d4bdc

(ftxfont_open): Don't set dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
author Kenichi Handa <handa@m17n.org>
date Thu, 07 Feb 2008 01:14:21 +0000
parents bd8c44318d8a
children 88c477bbeb74
files src/ftxfont.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ftxfont.c	Thu Feb 07 01:13:18 2008 +0000
+++ b/src/ftxfont.c	Thu Feb 07 01:14:21 2008 +0000
@@ -351,6 +351,14 @@
 	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;
 }