Move implementations from example to libcosmic
This commit is contained in:
parent
699e474427
commit
5ad54bd3b1
13 changed files with 162 additions and 122 deletions
16
src/font.rs
Normal file
16
src/font.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
pub use iced::Font;
|
||||
|
||||
pub const FONT: Font = Font::External {
|
||||
name: "Fira Sans Regular",
|
||||
bytes: include_bytes!("../res/Fira/Sans/Regular.otf"),
|
||||
};
|
||||
|
||||
pub const FONT_LIGHT: Font = Font::External {
|
||||
name: "Fira Sans Light",
|
||||
bytes: include_bytes!("../res/Fira/Sans/Light.otf"),
|
||||
};
|
||||
|
||||
pub const FONT_SEMIBOLD: Font = Font::External {
|
||||
name: "Fira Sans SemiBold",
|
||||
bytes: include_bytes!("../res/Fira/Sans/SemiBold.otf"),
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue