restrict font fallback to legacy Windows console

It was misbehaving with ENHANCED_SYMBOLS so restrict the font fallback
to the legacy Windows console for now.
This commit is contained in:
nhmall
2024-05-12 08:12:30 -04:00
parent 329ffae7df
commit 97916007ef

View File

@@ -2097,16 +2097,20 @@ static int CALLBACK EnumFontCallback(
void
check_and_set_font(void)
{
#ifndef VIRTUAL_TERMINAL_SEQUENCES
if (!check_font_widths()) {
const char *msg = "WARNING: glyphs too wide in console font."
" Changing code page to 437 and font to Consolas";
if (wizard) {
const char *msg = "WARNING: glyphs too wide in console font."
" Changing code page to 437 and font to Consolas";
if (iflags.window_inited)
pline ("%s", msg);
else
raw_printf("%s\n", msg);
if (iflags.window_inited)
pline ("%s", msg);
else
raw_printf("%s\n", msg);
}
set_known_good_console_font();
}
#endif
}
/* check_font_widths returns TRUE if all glyphs in current console font