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
Font is too small on HiDPI display #4
Comments
I use openbox. Some applications (example, sakura) rescale and some others (example, xterm) need different fonts. The size of the window needs to be set according to the application. The font can be internally changed. |
@maitra not exactly sure how to fix or even to test it. I don't have a big enough resolution so I tried to emulate one by launching a Xephyr virtual display bigger than my resolution, and added a "-dpi 192" argument, and run Lierre within the Xephyr env, but Lierre text looked much bigger than a basic app like xterm for example. What Qt version do you have? Can you tell more about your setup? How many DPI is your display and does the X server give the info to apps? Can you try I pushed a patch that enabled a better pixmap display qt option, but it should not affect text I believe. Can't do bad anyway. |
qt: 4.8.7
Don't know, how do I figure this out?
No, changes nothing.
OK, I will try, thanks! |
There appears to have been no commit for the past 8 days so perhaps not pushed? |
Can you try those commands?
|
Thanks!
|
This is interesting, 96dpi isn't high density. On a typical 23 inches screen, physical screen dimensions can be 508x286 millimeters.
It seems that when the X server knows the correct physical screen dimensions, it computes higher dpi, and Lierre (thanks to PyQt) displays bigger text accordingly to higher dpi. So it seems your X server is like my second test case. Maybe your screen physical dimensions aren't detected properly, making dpi as low as 96? Can you give the output of this command? Is the reported screen size in millimeters approximately corresponding to your device dimensions? Do you typically run GTK apps? Or other Qt/PyQt apps? Do they display correctly or did you configure them? Can you test this very basic PyQt app to see if the problem is specific to Lierre or PyQt? https://gist.github.com/hydrargyrum/407c9c268a0fe7138f9309d4bdae929a |
Some of the apps display correctly, others (and xterm) I change the font and then they work. So the answer is really a mix.
Yes, it is small, about 40 mm, but I can read it. The font is the same size as with lierre. Thanks! |
What is the actual display size? Have you done anything with the system to try to configure the dpi, scaling, or physical screen dimensions? |
I am on a Dell XPS 13 9370 with 4K resolution. I use openbox. I was suggested to put the following in my .Xresources:
but I did not need to. (What that means is that it did not make any difference from what I could tell.) |
Btw, how do I change the font for lierre? Where is it taking its font from? |
Now, there's nothing for it. What's intended is that the desktop environment sets it globally and consistently for apps.
Qt settings/computations I guess.
Didn't it change anything? For X to have to detect the correct DPI: https://wiki.archlinux.org/index.php/Xorg#Display_size_and_DPI |
OK, I got this to work, by setting it manually. I tried:
But the window is too small and I wonder if I can make it bigger without mousing it every time it opens. |
It really sounds like the system should be configured correctly rather than solving this just for Lierre. I'm just a passerby and even then not trying to terminate any conversation, but it does seem like the best help would be gotten from people familiar with the OS etc in question. Solving that may help other applications as well. Also, the DPI for that screen is more like 339 (based on 4k and 13"). Though sure, maybe there's some benefit to multiples of 96. Though many systems do 125%, 150% etc, at least back in the FHD days. :] |
Originally posted by @maitra in #2 (comment)
The text was updated successfully, but these errors were encountered: