Skip to content

Commit

Permalink
Use Font::MONOSPACE in editor example
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Sep 18, 2023
1 parent 8eec003 commit d1d0b3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ winit = { git = "https://github.com/iced-rs/winit.git", rev = "c52db2045d0a2f1b8

[patch.crates-io.cosmic-text]
git = "https://github.com/hecrj/cosmic-text.git"
branch = "editor-fixes"
branch = "respect-fontconfig-aliases"

[patch.crates-io.rangemap]
git = "https://github.com/hecrj/rangemap.git"
Expand Down
2 changes: 1 addition & 1 deletion examples/editor/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
}
Expand Down

0 comments on commit d1d0b3a

Please sign in to comment.