Closed cyphar closed 2 years ago
Some SVGs have fractional pixel bounding boxes, which we can safely round up without the user noticing anything. In addition, previously this code would use the width (x2) as both the height and width of the bounding-box -- this is also rectified.
Signed-off-by: Aleksa Sarai cyphar@cyphar.com
@fschutt Your re-apply of #107 basically reverted this patch entirely. I will re-submit it.
Some SVGs have fractional pixel bounding boxes, which we can safely round up without the user noticing anything. In addition, previously this code would use the width (x2) as both the height and width of the bounding-box -- this is also rectified.
Signed-off-by: Aleksa Sarai cyphar@cyphar.com