Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pronterface for Windows has no HighDPI awareness #1364

Open
neofelis2X opened this issue Jul 15, 2023 · 2 comments
Open

Pronterface for Windows has no HighDPI awareness #1364

neofelis2X opened this issue Jul 15, 2023 · 2 comments

Comments

@neofelis2X
Copy link
Contributor

neofelis2X commented Jul 15, 2023

Nothing urgent, but something I noticed on my laptop.
High DPI awareness is not enabled on Windows for Pronterface. As a result, fonts and certain UI elements appear pixelated / blurred when the user sets the OS to custom scaling.

Edit: The image shows the difference. The application in the background (Total Commander) has clear fonts and Pronterface is pixelated. The title bar is clear in both, as it is generated directly by Windows.
230719_pront_resolution

It is quite easy to enable dpi awareness. For example by adding:
from ctypes import windll
windll.shcore.SetProcessDpiAwareness(True)

BUT the real problem is that quite a few dialogs, frames and widgets have their size hardcoded in pixels. It will be a bit of work to find them all, convert them(.FromDIP() etc.) and test everything.

This is not an issue on MacOS, everything looks fine here.
Are there any Linux distros that suffer from similar problems?

@rockstorm101
Copy link
Collaborator

Are there any Linux distros that suffer from similar problems?

I'm unsure about how to confirm whether I see the issue or not but I'm happy to try. What did you do on macOS to prove it is not affected? See if I can replicate it

@neofelis2X
Copy link
Contributor Author

I have included a picture showing the problem on Windows. Simply put, if you don't see this effect and the fonts are sharp, then your system is not affected.

Also, this is the second reason why I know that macOS is not affected: »Some systems like eg Apple’s OSes automatically scale all the coordinates by the DPI scaling factor, however not all systems supported by wxWidgets do it – notably, MSW does not.« wxPython Doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants