juzzlin / Heimer

Heimer is a simple cross-platform mind map, diagram, and note-taking tool written in Qt.
GNU General Public License v3.0
889 stars 112 forks source link

The font is blur in HIDPI screen #192

Open gnozil opened 2 years ago

gnozil commented 2 years ago

Please see the attached screen shot, the font in diagram is unclear. My system is Ubuntu 21.10 on 4K screen, and system wide screen scale is 2.25. Screenshot.zip -- it looks like .png is not supported, but .png.zip is supported.

juzzlin commented 2 years ago

Thanks for reporting!

I'm not sure what happens there. My display is 2560x1440 with 100% scale so I haven't played that much with 4K screens. I tried some other scales and while Heimer did look horrible and weird I couldn't reproduce that issue. Maybe it needs a 4K screen. However, there's a similar issue with node background images so maybe we need to increase the node size to get more "resolution".

Have you tried the environment variables documented here: https://doc.qt.io/qt-5/highdpi.html

gnozil commented 2 years ago

Have you tried the environment variables documented here: https://doc.qt.io/qt-5/highdpi.html

Yes, this is the default setting in my system:

$ env | grep SCALE
QT_AUTO_SCREEN_SCALE_FACTOR=1

I also tried with other qt env variables combination specifically before launching Heimer, but got worse results: either toolbar font turned to too large, or diagram font turned to too blur.