Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate fonts since this is a widget crate, not a font crate. #292

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading