diff --git a/Cargo.lock b/Cargo.lock index 53412c77..8704bbff 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2150,7 +2150,7 @@ dependencies = [ [[package]] name = "nih_plug_assets" version = "0.1.0" -source = "git+https://github.com/robbert-vdh/nih_plug_assets.git#e921bf583ce13f518f3b9e9ce533cd55246d7fce" +source = "git+https://github.com/robbert-vdh/nih_plug_assets.git#a04e327923e120bfaba864098c906d7444e40d6b" [[package]] name = "nih_plug_derive" @@ -2711,9 +2711,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.15" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145" +checksum = "b4af2ec4714533fcdf07e886f17025ace8b997b9ce51204ee69b6da831c3da57" dependencies = [ "proc-macro2", ] diff --git a/nih_plug_iced/src/assets.rs b/nih_plug_iced/src/assets.rs index 66aef5aa..9a6db717 100644 --- a/nih_plug_iced/src/assets.rs +++ b/nih_plug_iced/src/assets.rs @@ -15,6 +15,16 @@ pub const NOTO_SANS_REGULAR_ITALIC: Font = Font::External { bytes: fonts::NOTO_SANS_REGULAR_ITALIC, }; +pub const NOTO_SANS_THIN: Font = Font::External { + name: "Noto Sans Thin", + bytes: fonts::NOTO_SANS_THIN, +}; + +pub const NOTO_SANS_THIN_ITALIC: Font = Font::External { + name: "Noto Sans Thin Italic", + bytes: fonts::NOTO_SANS_THIN_ITALIC, +}; + pub const NOTO_SANS_LIGHT: Font = Font::External { name: "Noto Sans Light", bytes: fonts::NOTO_SANS_LIGHT, diff --git a/nih_plug_vizia/src/assets.rs b/nih_plug_vizia/src/assets.rs index fc34ddf4..e8f3e385 100644 --- a/nih_plug_vizia/src/assets.rs +++ b/nih_plug_vizia/src/assets.rs @@ -10,6 +10,8 @@ pub use nih_plug_assets::*; pub fn register_fonts(cx: &mut Context) { cx.add_font_mem(NOTO_SANS_REGULAR, fonts::NOTO_SANS_REGULAR); cx.add_font_mem(NOTO_SANS_REGULAR_ITALIC, fonts::NOTO_SANS_REGULAR_ITALIC); + cx.add_font_mem(NOTO_SANS_THIN, fonts::NOTO_SANS_THIN); + cx.add_font_mem(NOTO_SANS_THIN_ITALIC, fonts::NOTO_SANS_THIN_ITALIC); cx.add_font_mem(NOTO_SANS_LIGHT, fonts::NOTO_SANS_LIGHT); cx.add_font_mem(NOTO_SANS_LIGHT_ITALIC, fonts::NOTO_SANS_LIGHT_ITALIC); cx.add_font_mem(NOTO_SANS_BOLD, fonts::NOTO_SANS_BOLD); @@ -18,6 +20,8 @@ pub fn register_fonts(cx: &mut Context) { pub const NOTO_SANS_REGULAR: &str = "Noto Sans Regular"; pub const NOTO_SANS_REGULAR_ITALIC: &str = "Noto Sans Regular Italic"; +pub const NOTO_SANS_THIN: &str = "Noto Sans Thin"; +pub const NOTO_SANS_THIN_ITALIC: &str = "Noto Sans Thin Italic"; pub const NOTO_SANS_LIGHT: &str = "Noto Sans Light"; pub const NOTO_SANS_LIGHT_ITALIC: &str = "Noto Sans Light Italic"; pub const NOTO_SANS_BOLD: &str = "Noto Sans Bold";