Open sang-shelton opened 1 week ago
winit
has a hard time figuring out the proper DPI scaling on Linux. As you can see from your logs:
INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 0.78125
You probably want that to be 2.0
. I believe you can add yet another hint for winit
and other Linux apps to use proper scaling in your ~/.Xresources
file. Try:
Xft.dpi: 192
I believe you can add yet another hint for winit and other Linux apps to use proper scaling in your ~/.Xresources file.
.Xresources
was not in my home dir so i had to create it and add that line. I rebooted and nothing changed.
Is it possible when developing an iced app to let the user setup the interface scaling manually from within the app, like veloren does ?
Is there an existing issue for this?
Is this issue related to iced?
What happened?
This issue is mentioned in detail here and here.
Screenshots of the issue with iced apps
![Screenshot_2024-04-24_22-40-21](https://github.com/iced-rs/iced/assets/154356073/beeb4635-d01d-4874-a6b2-4ca5dd98a044) ![Screenshot_2024-04-24_22-38-38](https://github.com/iced-rs/iced/assets/154356073/bff32a35-84bf-4a06-ab68-744d569942ce)
As you can see, the resolution is too high and the components are smaller than normal on the screen.
What is the expected behavior?
The apps should display correctly respecting the custom window scaling and DPI. GTK3 and 4 apps display well as far as i tested.
Version
master
Operating System
Linux
Do you have any log output?