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

Windows: System scaling setting not respected #319

Open
MarcAlx opened this issue Oct 31, 2016 · 5 comments
Open

Windows: System scaling setting not respected #319

MarcAlx opened this issue Oct 31, 2016 · 5 comments

Comments

@MarcAlx
Copy link

MarcAlx commented Oct 31, 2016

In order to not have tiny font size on Windows 10 with a high dpi monitor, users scale up font size like explain in this thread: http://superuser.com/questions/951199/windows-10-system-font-size-change

To understand the problem imagine reading non scaled text on a 12" tablet with high dpi (2736x1824). Texts look very small.

The problem is that Phoenix scales at 100% even if user scaling is at 250%. Here's an example:
vs

You could let user setup their scaling like in Stagelight:
stagelight

Or maybe if available through API take care of user setup.

Depending on the way scaling is achieved scaled apps could look blurry on Window 10 (cf iTunes on Windows 10).

@MarcAlx MarcAlx changed the title Using Phoenix with high dpi Windows 10 PC Using Phoenix with high dpi monitor on Windows 10 Oct 31, 2016
@MarcAlx
Copy link
Author

MarcAlx commented Oct 31, 2016

PS : Screenshots were made on Surface Pro 4.

@athairus
Copy link
Member

athairus commented Nov 2, 2016

Font size is currently hard-coded. It's not read from the system at all.

I'm confused about how your setup works. You link to a StackOverflow question whose solution is to increase just the font size while also saying that you've set your scaling to as high as 250% using the slider in Settings->System->Display? Which one do you do? Or do you do both?

@athairus athairus changed the title Using Phoenix with high dpi monitor on Windows 10 System font size not read at all Nov 2, 2016
@athairus athairus added this to the alpha (0.1.x) milestone Nov 2, 2016
@MarcAlx
Copy link
Author

MarcAlx commented Nov 2, 2016

I mentionned a superuser post to illustrate the setting I am using:

Settings > System > Display > Change the size of text, apps and other items

This setting not only increase font size, it scale the whole windows UI. This setting is used by most Surface Pro users as without it the UI is small and unreadable.

The problem I tried to explain is that while my UI is scaled at 250% using:

Settings > System > Display > Change the size of text, apps and other items

Phoenix launch well but scaled like if the setting was 100%, thus making texts in Phoenix unreadable (too small), like on the first picture of my post where Explorer.exe is readable and Phoenix not.

@athairus athairus changed the title System font size not read at all Windows: System scaling setting not respected Nov 2, 2016
@athairus
Copy link
Member

athairus commented Nov 2, 2016

I also have a Surface Pro. I always had it at 125% and never really noticed it wasn't scaling until I took it to 175%. Now I see it. We'll get to this one eventually. Thanks for the report!

@elBenko
Copy link

elBenko commented Mar 26, 2017

Sitting on a 4k monitor myself, so I'm really hoping this gets fixed in a not so distant future build so i can try Phoenix without the use of a magnifying glass :)

But if it isn't yet fixed, then perhaps this link would be of interest:
http://blog.qt.io/blog/2016/01/26/high-dpi-support-in-qt-5-6/

so setting the enviroment variable:
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");

or setting:
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
right before you create the QApplication object.

I've got zero experience with the qt framework,
but i figure either of those should do the trick, hopefully.

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

No branches or pull requests

3 participants