Skip to content

Commit

Permalink
Remove console font code
Browse files Browse the repository at this point in the history
  • Loading branch information
JNechaevsky committed Mar 29, 2023
1 parent fac4180 commit 068256b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/crlcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -1449,8 +1449,6 @@ static HWND CRL_Console;

void CRL_CreateWindowsConsole (void)
{
CONSOLE_FONT_INFOEX cfi; // [JN] Purely to shut up compiler warning.

// Allocate console.
AllocConsole();
SetConsoleTitle("CRL Console");
Expand All @@ -1465,15 +1463,6 @@ void CRL_CreateWindowsConsole (void)
// Set a proper codepage.
SetConsoleOutputCP(CP_UTF8);
SetConsoleCP(CP_UTF8);

// Set console font to "Consolas".
cfi.cbSize = sizeof cfi;
cfi.nFont = 0;
cfi.dwFontSize.X = 0;
cfi.dwFontSize.Y = 16;
cfi.FontFamily = FF_DONTCARE;
cfi.FontWeight = FW_NORMAL;
wcscpy(cfi.FaceName, L"Consolas");
}

// -----------------------------------------------------------------------------
Expand Down

0 comments on commit 068256b

Please sign in to comment.