Win32TTY: Fix using a console font with wide glyphs

Added support to detect when the current console font has glyphs
that are too wide and will cause rendering errors in the console.
If detected, we warn the user and change the code page to 437
and the font to Consolas. At exit, if we had changed the font
and code page then we will restore to the original font and code page.
This commit is contained in:
Bart House
2017-10-21 13:41:29 -07:00
committed by Pasi Kallinen
parent 3d2e59ecec
commit 6322aec829
3 changed files with 232 additions and 35 deletions

View File

@@ -5114,6 +5114,7 @@ boolean setinitial, setfromfile;
assign_graphics(ROGUESET);
} else if (!rogueflag)
assign_graphics(PRIMARY);
preference_update("symset");
need_redraw = TRUE;
return TRUE;