aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2008-02-07 01:14:21 +0000
committerKenichi Handa2008-02-07 01:14:21 +0000
commit562af9bcf562e96364b8c56dac475bdb26d833a1 (patch)
tree99ec556b34e3b743637fee2eb83e356fc9fa9a41 /src
parent06a1ab15d61873f25387c8828725a2fe7fa2312e (diff)
downloademacs-562af9bcf562e96364b8c56dac475bdb26d833a1.tar.gz
emacs-562af9bcf562e96364b8c56dac475bdb26d833a1.zip
(ftxfont_open): Don't set
dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
Diffstat (limited to 'src')
-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)
351 dpyinfo->smallest_char_width = font->min_width, fonts_changed_p |= 1; 351 dpyinfo->smallest_char_width = font->min_width, fonts_changed_p |= 1;
352 } 352 }
353 353
354 if (fonts_changed_p)
355 {
356 if (dpyinfo->smallest_font_height == 0)
357 dpyinfo->smallest_font_height = 1;
358 if (dpyinfo->smallest_char_width == 0)
359 dpyinfo->smallest_char_width = 1;
360 }
361
354 return font; 362 return font;
355} 363}
356 364