slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
17.64k stars 607 forks source link

swrenderer: Fix drawing of clipped VectorFont #6777

Closed ogoffart closed 1 week ago

ogoffart commented 1 week ago

That code was touched recently while doing the signed distance field rendering. The offset is now within the source rectangle. So the SharedBufferCommand's source_rect must include the whole pixmap.

Unfortunately, VectorFont are not covered by the screenshot tests