euv_core/style/text_prop/
struct.rs1use super::*;
2
3#[derive(Clone, Copy, Data, Debug, PartialEq)]
5pub struct TextStyle {
6 #[get(type(copy))]
8 pub(crate) family: FontFamily,
9 #[get(type(copy))]
11 pub(crate) font_size: f32,
12 #[get(type(copy))]
14 pub(crate) weight: FontWeight,
15 #[get(type(copy))]
17 pub(crate) line_height: f32,
18 #[get(type(copy))]
20 pub(crate) letter_spacing: f32,
21 #[get(type(copy))]
23 pub(crate) align: TextAlign,
24 #[get(type(copy))]
26 pub(crate) overflow: TextOverflow,
27 #[get(type(copy))]
29 pub(crate) color: Color,
30 #[get(type(copy))]
32 pub(crate) italic: bool,
33 #[get(type(copy))]
35 pub(crate) underline: bool,
36 #[get(type(copy))]
38 pub(crate) strikethrough: bool,
39}