Add text shaping example

This commit is contained in:
Jeremy Soller 2022-10-03 11:45:46 -06:00
parent a59a4de79b
commit f03a75d75f
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
16 changed files with 1063 additions and 13 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/Fira/Sans/Regular.otf"),
bytes: include_bytes!("../res/FiraSans/Regular.otf"),
};
pub const FONT_LIGHT: Font = Font::External {
name: "Fira Sans Light",
bytes: include_bytes!("../res/Fira/Sans/Light.otf"),
bytes: include_bytes!("../res/FiraSans/Light.otf"),
};
pub const FONT_SEMIBOLD: Font = Font::External {
name: "Fira Sans SemiBold",
bytes: include_bytes!("../res/Fira/Sans/SemiBold.otf"),
bytes: include_bytes!("../res/FiraSans/SemiBold.otf"),
};