wip: update to use cosmic-advanced-text
This commit is contained in:
parent
98ec1bbd48
commit
5da0bef35e
36 changed files with 367 additions and 282 deletions
29
src/font.rs
29
src/font.rs
|
|
@ -3,17 +3,22 @@
|
|||
|
||||
pub use iced::Font;
|
||||
|
||||
pub const FONT: Font = Font::External {
|
||||
name: "Fira Sans Regular",
|
||||
bytes: include_bytes!("../res/Fira/FiraSans-Regular.otf"),
|
||||
};
|
||||
pub const FONT: Font = Font::with_name("Fira Sans Regular");
|
||||
// pub const FONT: Font = Font::External {
|
||||
// name: "Fira Sans Regular",
|
||||
// bytes: include_bytes!("../res/Fira/FiraSans-Regular.otf"),
|
||||
// };
|
||||
|
||||
pub const FONT_LIGHT: Font = Font::External {
|
||||
name: "Fira Sans Light",
|
||||
bytes: include_bytes!("../res/Fira/FiraSans-Light.otf"),
|
||||
};
|
||||
pub const FONT_LIGHT: Font = Font::with_name("Fira Sans Light");
|
||||
|
||||
pub const FONT_SEMIBOLD: Font = Font::External {
|
||||
name: "Fira Sans SemiBold",
|
||||
bytes: include_bytes!("../res/Fira/FiraSans-SemiBold.otf"),
|
||||
};
|
||||
// pub const FONT_LIGHT: Font = Font::External {
|
||||
// name: "Fira Sans Light",
|
||||
// bytes: include_bytes!("../res/Fira/FiraSans-Light.otf"),
|
||||
// };
|
||||
|
||||
pub const FONT_SEMIBOLD: Font = Font::with_name("Fira Sans SemiBold");
|
||||
|
||||
// pub const FONT_SEMIBOLD: Font = Font::External {
|
||||
// name: "Fira Sans SemiBold",
|
||||
// bytes: include_bytes!("../res/Fira/FiraSans-SemiBold.otf"),
|
||||
// };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue