[−][src]Function winconsole::console::set_font
pub fn set_font(font: &ConsoleFont) -> WinResult<()>
Sets information about the console font.
Arguments
font
- AConsoleFont
which contains the font information.
Examples
Changes the console font to Consolas.
let mut font = console::get_font().unwrap(); font.name = "Consolas".to_string(); console::set_font(&font).unwrap();
Errors
InvalidHandleError
: Returned if an invalid handle to the console output is retrieved or used.IoError
: Returned if an OS error occurs.