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

add lucide font #272

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
Binary file added src/core/fonts/lucide.ttf
Binary file not shown.
9 changes: 8 additions & 1 deletion src/core/icons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,26 @@ use iced::Font;
cfg_if! {
if #[cfg(feature = "icons")] {
pub mod bootstrap;
pub mod lucide;
pub mod nerd;

pub use bootstrap::{Bootstrap};
pub use bootstrap::Bootstrap;
pub use lucide::Lucide;
pub use nerd::Nerd;

/// The default icon font bytes for loading the font into iced.
pub const BOOTSTRAP_FONT_BYTES: &[u8] = include_bytes!("./fonts/bootstrap-icons.ttf");
/// the icon font that has all nerd fonts.
pub const NERD_FONT_BYTES: &[u8] = include_bytes!("./fonts/nerd-icons.ttf");
/// the icon font that has all lucid fonts.
pub const LUCID_FONT_BTYES: &[u8] = include_bytes!("./fonts/lucide.ttf");

/// The bootstrap icon font.
pub const BOOTSTRAP_FONT: Font = Font::with_name("bootstrap-icons");
/// The nerd icon font.
pub const NERD_FONT: Font = Font::with_name("Symbols Nerd Font");
/// The lucid icon font.
pub const LUCID_FONT: Font = Font::with_name("");
} else {
#[path = "icons/required.rs"]
pub mod bootstrap;
Expand Down
Loading
Loading