Introduce text::Alignment with Justified support
This commit is contained in:
parent
e45d4b5cb6
commit
0e4a392731
30 changed files with 227 additions and 195 deletions
|
|
@ -293,7 +293,7 @@ where
|
|||
self.text_line_height,
|
||||
self.text_size,
|
||||
self.font,
|
||||
None,
|
||||
text::Alignment::Default,
|
||||
alignment::Vertical::Top,
|
||||
self.text_shaping,
|
||||
self.text_wrapping,
|
||||
|
|
@ -416,10 +416,8 @@ where
|
|||
size,
|
||||
line_height: *line_height,
|
||||
bounds: bounds.size(),
|
||||
horizontal_alignment: Some(
|
||||
alignment::Horizontal::Center,
|
||||
),
|
||||
vertical_alignment: alignment::Vertical::Center,
|
||||
align_x: text::Alignment::Center,
|
||||
align_y: alignment::Vertical::Center,
|
||||
shaping: *shaping,
|
||||
wrapping: text::Wrapping::default(),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue