public static CONSOLE_FONT_INFO_EX GetCurrentFontInfo() { CONSOLE_FONT_INFO_EX ConsoleFontInfo = new CONSOLE_FONT_INFO_EX(); ConsoleFontInfo.cbSize = (uint)Marshal.SizeOf(ConsoleFontInfo); WinApi.GetCurrentConsoleFontEx(WinApi.GetStdHandle(StdHandle.OutputHandle), false, ref ConsoleFontInfo); return(ConsoleFontInfo); }
public static extern Int32 SetCurrentConsoleFontEx(IntPtr ConsoleOutput, bool MaximumWindow, ref CONSOLE_FONT_INFO_EX ConsoleCurrentFontEx);
public extern static bool GetCurrentConsoleFontEx(IntPtr hConsoleOutput, bool bMaximumWindow, ref CONSOLE_FONT_INFO_EX lpConsoleCurrentFont);
public static void SetCurrentFontInfo(CONSOLE_FONT_INFO_EX ConsoleFontInfo) { ConsoleFontInfo.cbSize = (uint)Marshal.SizeOf(ConsoleFontInfo); WinApi.SetCurrentConsoleFontEx(WinApi.GetStdHandle(StdHandle.OutputHandle), false, ref ConsoleFontInfo); }