Search code examples
cwinapimingw32

How to change/get the font(-size) in the "Console Application" using Windows API or internal command without changing the registry directly?


I have searched in the MSDN, but nothing meet my needs.

Could anyone help me? THANKS.

#include <windows.h>
int main (void)
{
    // HOW TO ?
}

Solution

  • To get info on the console's font use:

    To set font info use: