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
commit81167d72c0a77c6d5e45def2ecccccd84ba71a7a (patch)
tree48191951ef883ad4d9dcb48d7daf65f4a02f808a /src/ftxfont.c
parentb5a266101ebee1fa37b004f3f359942be7ec76ad (diff)
downloademacs-81167d72c0a77c6d5e45def2ecccccd84ba71a7a.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;
}