slint/internal/core/software_renderer
Olivier Goffart 4e7bbcf2ba
Try to improve rendering (positioning) of signed field distance font. (#6868)
* WIP: swrenderer: use fixed point for the pixmap font coordinate

* swrenderer: signed distance field: move the glyph to the middle

* swrenderer: round the advance instead of truncating it in distance field

* swrenderer: actually align the gplyph on the sub-pixel precision

sub-pixel within the source.

* swrenderer: adapt the threshold for signed distance field

sqrt(2) is the distance to the diagonal, seems like this gives sharper fonts

* Fix bug in the elision, and re-upload the screenshort

the screenshot changed because the afvanced is now rounded intead of
truncated
2024-11-30 23:03:31 +01:00
..
fonts Try to improve rendering (positioning) of signed field distance font. (#6868) 2024-11-30 23:03:31 +01:00
draw_functions.rs Try to improve rendering (positioning) of signed field distance font. (#6868) 2024-11-30 23:03:31 +01:00
fixed.rs Try to improve rendering (positioning) of signed field distance font. (#6868) 2024-11-30 23:03:31 +01:00
fonts.rs Try to improve rendering (positioning) of signed field distance font. (#6868) 2024-11-30 23:03:31 +01:00
minimal_software_window.rs refactor: split sofware_renderer.rs in modules 2024-10-11 11:56:46 +02:00
scene.rs Signed DistanceField font rendering in swrenderer 2024-10-23 09:12:30 +02:00