Allow configuration of default font
This commit is contained in:
parent
e1062a02d1
commit
d96ced8e2d
8 changed files with 39 additions and 14 deletions
|
|
@ -15,6 +15,9 @@ pub struct Settings {
|
|||
///
|
||||
/// [`Color`]: ../struct.Color.html
|
||||
pub background: Color,
|
||||
|
||||
// TODO: Add `name` for web compatibility
|
||||
pub default_font: Option<&'static [u8]>,
|
||||
}
|
||||
|
||||
impl Default for Settings {
|
||||
|
|
@ -22,6 +25,7 @@ impl Default for Settings {
|
|||
Settings {
|
||||
window: Window::default(),
|
||||
background: Color::WHITE,
|
||||
default_font: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue