paintz icon indicating copy to clipboard operation
paintz copied to clipboard

Text shifts down and to the right a pixel when rasterized

Open ZMYaro opened this issue 3 years ago • 3 comments

ZMYaro avatar Dec 06 '22 06:12 ZMYaro

It looks as though it may be an issue of certain fonts having letters not line up with pixels at common sizes.

ZMYaro avatar Dec 06 '22 07:12 ZMYaro

It still looks like older versions didn't have this issue. My guess is it had to do with the changes to floating regions in v3.3, but I am not 100% sure and haven't found a good solution yet. I am going to push this off to the next version.

ZMYaro avatar Dec 25 '22 19:12 ZMYaro

This seems to be due to padding floating regions out 1 pixel (1 screen pixel, not 1 canvas pixel) in each direction. I can't recall why I did that or why that didn't occur to me while working on v3.4, but removing that seems to fix it. It also fixes the floating region border sometimes being very slightly off from selection content at certain zoom levels. I need to test further to see whether it does breaks something, but hopefully this is it!

ZMYaro avatar Dec 14 '23 07:12 ZMYaro