[][src]Function winconsole::console::set_font

pub fn set_font(font: &ConsoleFont) -> WinResult<()>

Sets information about the console font.

Arguments

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