refactoring
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
/// 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,
|
||||
}
|
||||
Reference in New Issue
Block a user