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:
committed by
Pasi Kallinen
parent
3d2e59ecec
commit
6322aec829
@@ -300,6 +300,8 @@ extern const struct symdef defsyms[MAXPCHARS]; /* defaults */
|
||||
extern const struct symdef def_warnsyms[WARNCOUNT];
|
||||
extern int currentgraphics; /* from drawing.c */
|
||||
extern nhsym showsyms[];
|
||||
extern nhsym l_syms[];
|
||||
extern nhsym r_syms[];
|
||||
|
||||
extern struct symsetentry symset[NUM_GRAPHICS]; /* from drawing.c */
|
||||
#define SYMHANDLING(ht) (symset[currentgraphics].handling == (ht))
|
||||
|
||||
Reference in New Issue
Block a user