Skip to content

Commit

Permalink
add lucide font
Browse files Browse the repository at this point in the history
  • Loading branch information
Redhawk18 committed Jul 22, 2024
1 parent 8fdab86 commit ec400d1
Show file tree
Hide file tree
Showing 3 changed files with 4,549 additions and 1 deletion.
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 lucid;

Check failure on line 9 in src/core/icons.rs

View workflow job for this annotation

GitHub Actions / all

file not found for module `lucid`
pub mod nerd;

pub use bootstrap::{Bootstrap};
pub use bootstrap::Bootstrap;
pub use lucid::Lucid;

Check failure on line 13 in src/core/icons.rs

View workflow job for this annotation

GitHub Actions / all

unresolved import `lucid::Lucid`
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

0 comments on commit ec400d1

Please sign in to comment.