Open nbud opened 4 years ago
Hi @nbud, when you changed the DPI options did you used the option Enable auto high DPI scaling
? Could you try restarting Spyder with the Enable auto high DPI scaling
on?
We will be checking this in a future release. Thanks for the feedback!
Hi @dalthviz, I have tried the "normal", "auto" and "fixed" DPI scaling settings (with a restart between each), with no success.
Thanks for the info @nbud ! We will be checking this one in a future release :+1:
I found a fix: right-click on Spyder shortcut, Properties, then Compatibility tab, Change high DPI settings.
Tick Override high DPI scaling behaviour, select Scaling performed by System.
Thanks nbud: it solves the issue. For the coding part, QT from 5.4 is supporting High DPI: https://doc.qt.io/qt-5/highdpi.html From their documentation, they state for the migration:
To get an application designed for low DPI values running on high resolution monitors quickly, consider one of the following: let the application run as DPI Unaware on Windows set the QT_AUTO_SCREEN_SCALE_FACTOR environment variable to 1.
Thanks for the info @nbud @datiti on how to work around the issue!
Same problems here on Linux. Spyder messes with my custom set environment variables and destroys Qt's per screen scaling. It works as expected if commenting out this code: https://github.com/spyder-ide/spyder/blob/bbefcebd48a93cd08f2f17be86d3ce7478e5130f/spyder/app/start.py#L98-L107
It should probably check if the enviroment variables are set before overwriting them. I could create a PR for that.
Hi @hpfmn thanks for the feedback! we set the env vars using the values in the preferences
but maybe, as you suggest, we need to handle the case where these values are being set outside Spyder, @ccordoba12 what do you think?
It should probably check if the enviroment variables are set before overwriting them. I could create a PR for that.
If you're referring to add a check in the else
part of the code you referenced above, then I agree with add a check to see if those variables are set before overwriting them.
Well, it's 3.5 years later, and I have the same problem. I tried the fix by @nbud, but it didn't change anything. I've posted my details on other open issues of the same problem, so I'll just leave it that this work-around is not working in my case...nor are any settings in the app Spyder 5.5.1 on Windows 11
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
I have two screens:
When I start Spyder with screen 1 turned off (laptop lid closed), Spyder display is bad: some fonts are massive (which prevents to resize internal windows in some case), the pyplot windows open off screen.
Tweaking the DPI options in the settings did not fix the issue. Opening Spyder when both screens are on fixes the issue.
Screenshot (after spyder reset):
What steps reproduce the problem?
What is the expected output? What do you see instead?
Expected a decent rendering. Obtain a poor rendering.
Paste Traceback/Error Below (if applicable)
No error in the internal console. Here are some debug information:
Versions
Dependencies