mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-08 15:35:02 +00:00
(ftxfont_open): Don't set
dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
This commit is contained in:
parent
06a1ab15d6
commit
562af9bcf5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user