You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
395 B
19 lines
395 B
//! Console font
|
|
|
|
mod font8x16;
|
|
|
|
pub use self::font8x16::Font8x16;
|
|
|
|
pub trait Font {
|
|
const HEIGHT: usize;
|
|
const WIDTH: usize;
|
|
|
|
/// The `y` coordinate of underline.
|
|
const UNDERLINE: usize;
|
|
/// The `y` coordinate of strikethrough.
|
|
const STRIKETHROUGH: usize;
|
|
|
|
/// Whether the character `byte` is visible at `(x, y)`.
|
|
fn get(byte: u8, x: usize, y: usize) -> bool;
|
|
}
|