Skip to content

Commit

Permalink
fonts: Add FiraSans Bold typeface
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Oct 30, 2023
1 parent 6b517dd commit e9621cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Binary file added res/Fira/FiraSans-Bold.otf
Binary file not shown.
10 changes: 10 additions & 0 deletions src/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ pub const FONT_SEMIBOLD: Font = Font {

pub const FONT_SEMIBOLD_DATA: &[u8] = include_bytes!("../res/Fira/FiraSans-SemiBold.otf");

pub const FONT_BOLD: Font = Font {
family: Family::Name("Fira Sans"),
weight: iced_core::font::Weight::Bold,
stretch: iced_core::font::Stretch::Normal,
monospaced: false,
};

pub const FONT_BOLD_DATA: &[u8] = include_bytes!("../res/Fira/FiraSans-Bold.otf");

pub const FONT_MONO_REGULAR: Font = Font {
family: Family::Name("Fira Mono"),
weight: iced_core::font::Weight::Normal,
Expand All @@ -53,6 +62,7 @@ pub fn load_fonts() -> Command<Result<(), Error>> {
load(FONT_DATA),
load(FONT_LIGHT_DATA),
load(FONT_SEMIBOLD_DATA),
load(FONT_BOLD_DATA),
load(FONT_MONO_REGULAR_DATA),
])
}

0 comments on commit e9621cc

Please sign in to comment.