1use bitflags::bitflags;
2
3use crate::Float;
4
5bitflags! {
6 #[derive(Clone, Copy, Default, Debug, PartialEq)]
7 pub struct FontStyle: u32 {
8 const Normal = 0;
9 const Italic = 1;
10 const Underline = 2;
11 const Strikethrough = 4;
12 }
13}
14
15#[derive(Clone, Copy, Debug, PartialEq, PartialOrd)]
16pub enum FontWeight {
17 Thin = 100,
18 ExtraLight = 200,
19 Light = 300,
20 Normal = 400,
21 Medium = 500,
22 SemiBold = 600,
23 Bold = 700,
24 ExtraBold = 800,
25 Black = 900,
26 ExtraBlack = 950,
27}
28
29pub const DEFAULT_FONT_FAMILY: &str = "arial";
30pub const DEFAULT_FONT_SIZE: Float = 12.0;