Also add round to text bound position
This commit is contained in:
parent
f19c45494a
commit
dcf5abb0d8
1 changed files with 2 additions and 2 deletions
|
|
@ -626,8 +626,8 @@ fn prepare(
|
|||
scale: transformation.scale_factor()
|
||||
* layer_transformation.scale_factor(),
|
||||
bounds: cryoglyph::TextBounds {
|
||||
left: clip_bounds.x as i32,
|
||||
top: clip_bounds.y as i32,
|
||||
left: clip_bounds.x.round() as i32,
|
||||
top: clip_bounds.y.round() as i32,
|
||||
right: (clip_bounds.x + clip_bounds.width).round() as i32,
|
||||
bottom: (clip_bounds.y + clip_bounds.height).round() as i32,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue