Which attribute is used to define the font type
The Answer to the Question
is below this banner.
Can't find a solution anywhere?
NEED A FAST ANSWER TO ANY QUESTION OR ASSIGNMENT?
Get the Answers Now!You will get a detailed answer to your question or assignment in the shortest time possible.
Here's the Solution to this Question
void setConsoleFont(short width, short height) //width and height are size of letters
{
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_FONT_INFOEX fontInfo = {};
GetCurrentConsoleFontEx(hConsole, FALSE, &fontInfo);
fontInfo.dwFontSize = { width, height };
fontInfo.cbSize = sizeof(fontInfo);
wcscpy_s(fontInfo.FaceName, L"ISOCTEUR"); //L"ISOCTEUR" is name of style for example
SetCurrentConsoleFontEx(hConsole, FALSE, &fontInfo);
}