Snap text to the pixel grid on the X axis in iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2025-05-28 21:02:45 +02:00
parent 3881d68b7e
commit 6c0962c5c3
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -621,7 +621,7 @@ fn prepare(
Some(cryoglyph::TextArea {
buffer,
left: position.x,
left: position.x.round(),
top: position.y,
scale: transformation.scale_factor()
* layer_transformation.scale_factor(),