Font matching support, choose font which has the most hits

This commit is contained in:
Jeremy Soller 2022-10-03 16:06:44 -06:00
parent 4b4fee034b
commit 924bd4b1ea
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
8 changed files with 165 additions and 54 deletions

View file

@ -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"),
};