Font matching support, choose font which has the most hits
This commit is contained in:
parent
4b4fee034b
commit
924bd4b1ea
8 changed files with 165 additions and 54 deletions
|
|
@ -2,15 +2,15 @@ pub use iced::Font;
|
|||
|
||||
pub const FONT: Font = Font::External {
|
||||
name: "Fira Sans Regular",
|
||||
bytes: include_bytes!("../res/FiraSans/Regular.otf"),
|
||||
bytes: include_bytes!("../res/Fira/FiraSans-Regular.otf"),
|
||||
};
|
||||
|
||||
pub const FONT_LIGHT: Font = Font::External {
|
||||
name: "Fira Sans Light",
|
||||
bytes: include_bytes!("../res/FiraSans/Light.otf"),
|
||||
bytes: include_bytes!("../res/Fira/FiraSans-Light.otf"),
|
||||
};
|
||||
|
||||
pub const FONT_SEMIBOLD: Font = Font::External {
|
||||
name: "Fira Sans SemiBold",
|
||||
bytes: include_bytes!("../res/FiraSans/SemiBold.otf"),
|
||||
bytes: include_bytes!("../res/Fira/FiraSans-SemiBold.otf"),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue