summaryrefslogtreecommitdiffstats
path: root/examples/editor
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-18 20:14:38 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-18 20:14:38 +0200
commitd1d0b3aaee84003278b9db3e86687e776f20b346 (patch)
tree35329dea57b2a781d40860a1dbc0c9f464f4609e /examples/editor
parent8eec0033dee816bfcc102fc4f511c8bfe08c14ee (diff)
downloadiced-d1d0b3aaee84003278b9db3e86687e776f20b346.tar.gz
iced-d1d0b3aaee84003278b9db3e86687e776f20b346.tar.bz2
iced-d1d0b3aaee84003278b9db3e86687e776f20b346.zip
Use `Font::MONOSPACE` in `editor` example
Diffstat (limited to 'examples/editor')
-rw-r--r--examples/editor/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/editor/src/main.rs b/examples/editor/src/main.rs
index 5018b3cb..277eb3e9 100644
--- a/examples/editor/src/main.rs
+++ b/examples/editor/src/main.rs
@@ -16,7 +16,7 @@ use std::sync::Arc;
pub fn main() -> iced::Result {
Editor::run(Settings {
fonts: vec![include_bytes!("../fonts/icons.ttf").as_slice().into()],
- default_font: Font::with_name("Hasklug Nerd Font Mono"),
+ default_font: Font::MONOSPACE,
..Settings::default()
})
}