13 lines
486 B
Rust
13 lines
486 B
Rust
/// Specifies a bitmap font for a board.
|
|
///
|
|
/// Each board can optionally specify a font image and tile dimensions.
|
|
/// When absent, the app's default embedded CP437 font is used.
|
|
#[derive(Clone, PartialEq, Eq)]
|
|
pub struct FontSpec {
|
|
/// Path to the PNG font image, relative to the working directory.
|
|
pub path: String,
|
|
/// Width of each tile in the font image, in pixels.
|
|
pub tile_w: u32,
|
|
/// Height of each tile in the font image, in pixels.
|
|
pub tile_h: u32,
|
|
} |