(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
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue