How to change a console window's font?
-
The Win32 console API has a lot of functions to change a console window's size, color, scroll range and whatsoever. It is even possible to change the window's code page. (Normally, it is 437 on US english systems and 850 on german systems). The font normally used by console windows is not capable of displaying any other codepage than the system's default code page; if for instance I try to display text using the ANSI codepage (1252), some characters are not displayed properly. If I change the console window's font to a non-bitmap font (such as "Lucida Console" or "Andale Mono"), text can be displayed in any codepage whatsoever. However, the only way to change the console window's font seems to be using the console window's property menu or the control panel applet 'Console'. I would like to change the font *programmatically*, that is, without user intervention. Any clues?