// I found something that works with Code::Blocks 17.12 , C++, Console App.
/*
The problem now is that when i increase the size of the font,
the console window gets larger as if the resolution is decreasing
*/
#define _WIN32_WINNT 0x0601
#include<windows.h>
#include<iostream>
string uname;
int main()
{
int
newWidth=14, // experiment here for changing of font size
newHeight=28; // beware that the console window screen resolution changes also
CONSOLE_FONT_INFOEX fontStructure={0};
fontStructure.cbSize=sizeof(fontStructure);
fontStructure.dwFontSize.X=newWidth;
fontStructure.dwFontSize.Y=newHeight;
HANDLE hConsole=GetStdHandle(STD_OUTPUT_HANDLE);
SetCurrentConsoleFontEx(hConsole, true, &fontStructure);
cout <<"\nHello What is your name?"<<endl;
cin >>uname;
cout << "Hello "<<uname<<endl;
system("pause");
}