fix cache
add font propertie to rust text paint layout improvements
This commit is contained in:
Binary file not shown.
@@ -30,6 +30,7 @@ pub struct Paint {
|
||||
pub struct TextPaint {
|
||||
pub style: PaintStyle,
|
||||
pub align: TextAlign,
|
||||
pub fontName: String,
|
||||
pub size: f32,
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user