Change DOS Font size programatically
Posted on 2003-03-03
I am using Windows NT currently, though we may upgrade to XP in a year or so.
In the properties of a running DOS prompt, there is a Font tab, which allows you to change the size and type of font, and immediately apply this to the current window. The changes are applied during runtime.
Now the DOS application we have made can change its columns from 80 to 132 depending on what information we need to display, however, when we change to width 132, the window takes up considerably more area than we want it to (80->132 is more than half again the original window width). We'd prefer instead to decrease the font size, and keep the window size about the same.
So, the question is, how can we programatically change the font size/font of a DOS application during runtime?