Also add round to text bound position

This commit is contained in:
DKolter 2025-06-03 12:17:26 +02:00
parent f19c45494a
commit dcf5abb0d8

View file

@ -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,
},