cqrlog
cqrlog copied to clipboard
Overlapping fonts on HiDPI display
Hi There,
Firstly, thanks for what looks like an awesome piece of software! I've been QRT since 2012 and just getting back into the hobby. I'm a 100% Linux user, and scientific programmer, and I'm amazed at the work that's been done in the Linux amateur radio space over the last 10 years!
I'm running Mint 20.3 (upstream Ubuntu Focal) with the Cinnamon desktop, CQRLog installed from the PPA as indicated in the install instructions (v. 2.5.2).
My display uses HiDPI resolution (3840x2160) driven by NVIDIA proprietary drivers. Unfortunately, I'm seeing really misaligned fonts as in the attached screenshot. If you could zero me in on a particular bit of the source code, I could have a play and see if I can improve matters.
Any thoughts gratefully received.
73
Chris, M0DWK
Hi Chris!
I am afraid that is the Lazarus/FPC problem with it's GTK2 widget code. You could try to compile Cqrlog with QT5 widgets and see what kind of problems that gives with HiDPI. I am sure it looks different, but how (I do not have HiDPI monitors).
See this message https://www.cqrlog.com/node/2998
You have to install "sudo apt install libqt5pas1 libqt5pas-dev" and then compile from command console with "make cqrlog_qt5" or from Lazarus-ide by setting Project/Project options/Additions and overrides/LCL widget type and after that Run/compile again.
This is more Lazarus/Freepascal problem than Cqrlog's, I think.
Thanks for the advice. Interestingly, building from source with QT5 did not immediately sort out the issue.
Even more interestingly, although resizing the fonts to 8pt did at least decrease the text size so that overlaps were avoided in GTK3, this solution does not work under QT5. I'm unfamiliar with either API, but I wonder if there's a scaling constant that could be applied? Will consult the doc...
73,
Chris
HI! Did you try to set scaling to 100%? See the last message of this chain https://www.cqrlog.com/node/1454