Support max_width and text::Alignment for canvas::Text
This commit is contained in:
parent
6ebf386249
commit
97b4ed0d84
13 changed files with 139 additions and 127 deletions
|
|
@ -479,6 +479,7 @@ fn prepare(
|
|||
line_height,
|
||||
font,
|
||||
shaping,
|
||||
align_x,
|
||||
..
|
||||
} => {
|
||||
let (key, _) = buffer_cache.allocate(
|
||||
|
|
@ -488,6 +489,7 @@ fn prepare(
|
|||
size: f32::from(*size),
|
||||
line_height: f32::from(*line_height),
|
||||
font: *font,
|
||||
align_x: *align_x,
|
||||
bounds: Size {
|
||||
width: bounds.width,
|
||||
height: bounds.height,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue