fix cache

add font propertie to rust text paint
layout improvements
This commit is contained in:
2023-05-28 01:10:53 +02:00
parent b671f9ee47
commit 1baa3ae736
18 changed files with 176 additions and 84 deletions

Binary file not shown.

View File

@@ -30,6 +30,7 @@ pub struct Paint {
pub struct TextPaint {
pub style: PaintStyle,
pub align: TextAlign,
pub fontName: String,
pub size: f32,
}

View File

@@ -154,6 +154,7 @@ pub fn test_timeline_entities_at_frame(
color: Color::new(0, 0, 0, 1.0),
width: 10.0,
}),
fontName: "Arial".to_string(),
align: TextAlign::Center,
size: 20.0,
};
@@ -162,6 +163,7 @@ pub fn test_timeline_entities_at_frame(
style: PaintStyle::Fill(FillStyle {
color: Color::new(0, 0, 0, 1.0),
}),
fontName: "Arial".to_string(),
align: TextAlign::Center,
size: 10.0,
};