Skip to content

Commit

Permalink
deprecate fonts since this is a widget crate, not a font crate.
Browse files Browse the repository at this point in the history
  • Loading branch information
Redhawk18 committed Sep 18, 2024
1 parent f012049 commit e94b943
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core/icons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e94b943

Please sign in to comment.