Use Noto Sans instead of the default Lato

This commit is contained in:
Robbert van der Helm
2022-03-14 15:50:24 +01:00
parent f1a855f2e3
commit 95827afc81
3 changed files with 12 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ smol = ["iced_baseview/smol"]
[dependencies]
nih_plug = { path = ".." }
nih_plug_assets = { git = "https://github.com/robbert-vdh/nih_plug_assets.git" }
baseview = { git = "https://github.com/robbert-vdh/baseview.git", branch = "feature/mouse-event-modifiers" }
crossbeam = "0.8"

View File

@@ -14,6 +14,7 @@ use crate::widgets::ParamMessage;
/// Re-export for convenience.
pub use iced_baseview::*;
pub use nih_plug_assets as assets;
pub mod widgets;
mod wrapper;
@@ -111,6 +112,10 @@ pub trait IcedEditor: 'static + Send + Sync + Sized {
// Enable some anti-aliasing by default. Since GUIs are likely very simple and most of
// the work will be on the CPU anyways this should not affect performance much.
antialiasing: Some(iced_baseview::backend::settings::Antialiasing::MSAAx4),
// Use Noto Sans as the default font as that renders a bit more cleanly than the default
// Lato font. This crate also contains other weights and versions of this font you can
// use for individual widgets.
default_font: Some(crate::assets::fonts::NOTO_SANS_REGULAR),
..iced_baseview::backend::settings::Settings::default()
}
}