From e94b9435966034cda0d658fa246c8581a0977f6c Mon Sep 17 00:00:00 2001 From: Redhawk18 Date: Wed, 18 Sep 2024 17:13:14 -0400 Subject: [PATCH] deprecate fonts since this is a widget crate, not a font crate. --- src/core/icons.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/core/icons.rs b/src/core/icons.rs index 4abcaaf0..14de3458 100644 --- a/src/core/icons.rs +++ b/src/core/icons.rs @@ -5,18 +5,26 @@ use iced::Font; cfg_if! { if #[cfg(feature = "icons")] { + #[deprecated(since="0.10.0", note="please use `iced_fonts` crate instead")] pub mod bootstrap; + #[deprecated(since="0.10.0", note="please use `iced_fonts` crate instead")] pub mod nerd; + #[deprecated(since="0.10.0", note="please use `iced_fonts` crate instead")] pub use bootstrap::{Bootstrap}; + #[deprecated(since="0.10.0", note="please use `iced_fonts` crate instead")] pub use nerd::Nerd; + #[deprecated(since="0.10.0", note="please use `iced_fonts` crate instead")] /// The default icon font bytes for loading the font into iced. pub const BOOTSTRAP_FONT_BYTES: &[u8] = include_bytes!("./fonts/bootstrap-icons.ttf"); + #[deprecated(since="0.10.0", note="please use `iced_fonts` crate instead")] /// the icon font that has all nerd fonts. pub const NERD_FONT_BYTES: &[u8] = include_bytes!("./fonts/nerd-icons.ttf"); + #[deprecated(since="0.10.0", note="please use `iced_fonts` crate instead")] /// The bootstrap icon font. pub const BOOTSTRAP_FONT: Font = Font::with_name("bootstrap-icons"); + #[deprecated(since="0.10.0", note="please use `iced_fonts` crate instead")] /// The nerd icon font. pub const NERD_FONT: Font = Font::with_name("Symbols Nerd Font"); } else {