Apply ceil to text bounds when drawing

This commit is contained in:
Héctor Ramón Jiménez 2023-02-07 18:35:05 +01:00
parent 680ea5dcca
commit a970f34cb4
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -105,8 +105,10 @@ impl Pipeline {
size: section.size * scale_factor, size: section.size * scale_factor,
font: section.font, font: section.font,
bounds: Size { bounds: Size {
width: section.bounds.width * scale_factor, width: (section.bounds.width * scale_factor)
height: section.bounds.height * scale_factor, .ceil(),
height: (section.bounds.height * scale_factor)
.ceil(),
}, },
color: section.color, color: section.color,
}, },