diff --git a/stand/common/gfx_fb.c b/stand/common/gfx_fb.c index ad38a657e23..af72ab1a4c9 100644 --- a/stand/common/gfx_fb.c +++ b/stand/common/gfx_fb.c @@ -2082,7 +2082,7 @@ gfx_get_font(teken_unit_t rows, teken_unit_t cols, teken_unit_t height, * Skip too large fonts. */ font = fl->font_data; - if (height / font->vfbd_height < rows && + if (height / font->vfbd_height < rows || width / font->vfbd_width < cols) continue;