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

Tiny fonts #174

Closed
1 task
sirxyzzy opened this issue Mar 7, 2020 · 7 comments
Closed
1 task

Tiny fonts #174

sirxyzzy opened this issue Mar 7, 2020 · 7 comments
Assignees

Comments

@sirxyzzy
Copy link

sirxyzzy commented Mar 7, 2020

What OS?

  • Windows

Description of issue

Font size seems really small, see screenshot, I suspect this is because I am using a high DPI device (Surface Laptop 2) 2256x1504

packetsender-fonts

Most native apps work well, but I have seen this sort of thing before from Qt based apps. I couldn't find a way to adjust font sizes manually

As a reference, here is a screenshot of the default font size in notepad, on the same screen.

notepad-fonts

@dannagle
Copy link
Owner

dannagle commented Mar 8, 2020

I unfortunately do not own a Windows laptop with a retina display to test on.

I know Qt has put effort in to this. It took them a while to look decent on retina Macbooks, but they did eventually get there. Perhaps their latest Windows kit has made progress. If I made a portable alpha with it, will you give it a quick launch on your laptop?

@dannagle dannagle self-assigned this Mar 8, 2020
@sirxyzzy
Copy link
Author

sirxyzzy commented Mar 8, 2020

Sure, I would be happy to test it out. FWIW, I see similar behavior in QtBittorrent, it seems to afflict custom text, but standard widgets (somehow) scale text better.

There is some interesting discussion here, https://doc.qt.io/qt-5/highdpi.html

I may be able to do a local build and fiddle with things a bit myself, depending on how difficult it is to build on Windows

@dannagle
Copy link
Owner

Here is an alpha of my standard build using updated Qt libraries:
https://github.com/dannagle/PacketSender/releases/tag/v6.3.0-alpha

@sirxyzzy
Copy link
Author

Looks the same as before, here is a screenshot...

packetsenderalpha

Let's see if I can build, then I can fiddle around...

@sirxyzzy
Copy link
Author

I was able to build, but I don't really know Qt, but as I have never used Qt before I'm not making headway (and Qt is a monster) I tried something as simple as editing a UI file in an attempt to explicitly set a font and I got precisely nowhere. I tried setting some promising looking env vars:

QT_AUTO_SCREEN_SCALE_FACTOR 1
QT_ENABLE_HIGHDPI_SCALING 1

No joy there either.

Amusingly the Qt installer itself has the exact same "miniature font" behavior.

Hey, I tried!

@dannagle
Copy link
Owner

Qt does a mix of its own widget rendering and native rendering. Something got lost in translation. If the Qt installer itself does it, the bug may be baked pretty deep and outside my control. I'll probably have to wait for them to fix. I appreciate your effort!

@dannagle
Copy link
Owner

dannagle commented Mar 5, 2023

This issue is basically the same problem mentioned here: #297 . Closing this one (yes, I know this one was opened first). Some fixes have been put place. More is needed.

@dannagle dannagle closed this as completed Mar 5, 2023
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

2 participants