]> git.eshelyaron.com Git - emacs.git/commitdiff
(ftxfont_open): Don't set
authorKenichi Handa <handa@m17n.org>
Thu, 7 Feb 2008 01:14:21 +0000 (01:14 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 7 Feb 2008 01:14:21 +0000 (01:14 +0000)
dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.

src/ftxfont.c

index 49222fdb514e7c62547af0735dc1acaa28431bb9..da56ef0faeeedd3a261002dcba1ebed575beebd1 100644 (file)
@@ -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;
 }