cqrlog icon indicating copy to clipboard operation
cqrlog copied to clipboard

Overlapping fonts on HiDPI display

Open chrism0dwk opened this issue 2 years ago • 7 comments

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 Screenshot from 2022-07-20 22-14-50

chrism0dwk avatar Jul 20 '22 21:07 chrism0dwk

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.

image

This is more Lazarus/Freepascal problem than Cqrlog's, I think.

OH1KH avatar Jul 21 '22 05:07 OH1KH

Thanks for the advice. Interestingly, building from source with QT5 did not immediately sort out the issue. Screenshot from 2022-07-21 16-08-44

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

chrism0dwk avatar Jul 21 '22 15:07 chrism0dwk

HI! Did you try to set scaling to 100%? See the last message of this chain https://www.cqrlog.com/node/1454

OH1KH avatar Jul 22 '22 06:07 OH1KH