Closed chenbaiyu0414 closed 1 year ago
After some investigation, I think maybe the problem is related to scale factor. I have a 4K monitor and usually use 150% scale factor, rectangle draw by femtovg works perfect whether 100%, 150% or 200%, but skia works bad on all three kinds of scale factor, the rectangle draw by skia has no anti-aliasing effect and bad shape.
BTW I'm using slint 0.3.5
slint = { version = "0.3.5", default-features = false, features = [
"std",
"backend-winit",
"renderer-winit-skia",
"compat-0-3-0",
] }
Hmm we fixed anti aliasing with rectangles and Skia after 0.3.5 in
https://github.com/slint-ui/slint/commit/7d984c7cb9db78ace5479bd09f054217df670088
Could you try with master? Otherwise we're going to make a new release next week :)
Nice, I'll test after the new release
Thanks for testing ❤️
The femtovg render result is correct but skia not. (note the blue rectangle)
top uses femtovg and bottom uses skia.
slint file: