Project 1999

Go Back   Project 1999 > General Community > Technical Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 02-20-2018, 06:53 PM
Mirox Mirox is offline
Aviak


Join Date: Dec 2010
Posts: 92
Default

Quote:
Originally Posted by Lobus [You must be logged in to view images. Log in or Register.]
any ideas on how to increase the font size so it's readable on a 4k display?
Apparently Qt does not do DPI scaling by default? It looks like I can turn this on and it should work for your 2160p if you scale using your os (the person tested on windows).

I don't have 2160p, but I do have 1080p and the ability to do dpi scaling. I can test it out on my system, and if it works, I can release it. Currently redoing map engine to allow for layers in the maps and if I have the next release out this Sunday, I will 100% try to include DPI scaling awareness turned on.

Qt css doesn't allow VH -- px measurement only. But if the dpi awareness doesn't work, I can output dynamic px measurements based on your screen height.

In the meantime since I haven't tested this yet, you could open up a command line, set the environmental variable QT_AUTO_SCREEN_SCALE_FACTOR to 1

Code:
setx QT_AUTO_SCREEN_SCALE_FACTOR 1
nparse
That may fix it in the mean time, but it may need the sister code for that within the program.
Last edited by Mirox; 02-20-2018 at 06:59 PM..
Reply With Quote
  #2  
Old 02-20-2018, 08:22 PM
Lobus Lobus is offline
Sarnak


Join Date: Jun 2016
Posts: 215
Default

Quote:
Originally Posted by Mirox [You must be logged in to view images. Log in or Register.]
Apparently Qt does not do DPI scaling by default? It looks like I can turn this on and it should work for your 2160p if you scale using your os (the person tested on windows).

I don't have 2160p, but I do have 1080p and the ability to do dpi scaling. I can test it out on my system, and if it works, I can release it. Currently redoing map engine to allow for layers in the maps and if I have the next release out this Sunday, I will 100% try to include DPI scaling awareness turned on.

Qt css doesn't allow VH -- px measurement only. But if the dpi awareness doesn't work, I can output dynamic px measurements based on your screen height.

In the meantime since I haven't tested this yet, you could open up a command line, set the environmental variable QT_AUTO_SCREEN_SCALE_FACTOR to 1

Code:
setx QT_AUTO_SCREEN_SCALE_FACTOR 1
nparse
That may fix it in the mean time, but it may need the sister code for that within the program.
awesome thanks man! I'll try to mess around with your suggestion but I doubt my abilities to do anything too crazy on the backend myself lol...
Reply With Quote
  #3  
Old 02-20-2018, 08:28 PM
Mirox Mirox is offline
Aviak


Join Date: Dec 2010
Posts: 92
Default

Quote:
Originally Posted by Lobus [You must be logged in to view images. Log in or Register.]
awesome thanks man! I'll try to mess around with your suggestion but I doubt my abilities to do anything too crazy on the backend myself lol...
Hah. [You must be logged in to view images. Log in or Register.] Well, the sister code I will take care of and I can set the environmental variable within the program, so the release won't have you doing anything with the prompt.

It was more a patch that most likely won't work, but I saw someone mentioning on a thread I was reading about 4k + pyqt5. They said it worked, others said it didn't.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:18 AM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.