Bug 418227 - Screens scaling 150%: bad font rendering when moving konsole from laptop screen to extern 4k monitor
Summary: Screens scaling 150%: bad font rendering when moving konsole from laptop scr...
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 19.12.2
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-26 16:45 UTC by Achim Bohnet
Modified: 2022-02-11 14:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Laptop screen: fonts properly displayed (374.25 KB, image/png)
2020-02-26 16:45 UTC, Achim Bohnet
Details
external screen: fonts display is distruted (199.39 KB, image/png)
2020-02-26 16:45 UTC, Achim Bohnet
Details
xrandr --verbose (33.06 KB, text/plain)
2020-02-26 16:47 UTC, Achim Bohnet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Achim Bohnet 2020-02-26 16:45:13 UTC
Created attachment 126431 [details]
Laptop screen: fonts properly displayed

SUMMARY
setup: Lenovo X1 Carbon laptop with external 4K Monitor connected with USB-C Dock
(see xrandr.out)

Wenn I move a konsole window to from laptop to external monitor the fonts are
distroted.

STEPS TO REPRODUCE
1. start konsole with Alt-Space on external monitor
2. alternatively: move konsole from laptop display to external monitor

OBSERVED RESULT
displayed fonts are too big for the row/column spacing (see konsole.on-extern-4k.png)


EXPECTED RESULT
fonts should fit the row/colum spacing (see konsole.on-laptop-screen.png)


SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.18
KDE Plasma Version: 5.18.2
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1
Kernel Version: 5.3.0-40-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-8565U CPU @ 1.80GHz
Memory: 15.4 GiB of RAM

ADDITIONAL INFORMATION:
1) Before with qt 5.12.? and Kde Apps 19.12.1 the font size was adapted to row/column spacing -> so fonts where much too small on the external monitor
(kwin decoration didn't show this bug)

2) moving konsole window from external monitor to laptop monitor fixes the
fonts display problem

3) Using Ctrl-- & Ctrl-+ fixes adapts the row/colum spacing to the font size
Comment 1 Achim Bohnet 2020-02-26 16:45:56 UTC
Created attachment 126432 [details]
external screen: fonts display is distruted
Comment 2 Achim Bohnet 2020-02-26 16:47:05 UTC
Created attachment 126433 [details]
xrandr --verbose
Comment 3 Achim Bohnet 2020-02-26 17:31:36 UTC
Maybe related? https://bugs.kde.org/show_bug.cgi?id=418229
Comment 4 Jon Severinsson 2021-03-21 14:32:19 UTC
I'm seeing the same / a very similar issue on my desktop with two displays, one 32" 4k display with a scaling factor of 2, and one rotated 24" 1920x1200 display with a scaling factor of 1.5:

$ xrandr | grep " connected "
DisplayPort-0 connected primary 3840x2160+1200+0 (normal left inverted right x axis y axis) 697mm x 392mm
DVI-D-0 connected 1200x1920+0+0 left (normal left inverted right x axis y axis) 518mm x 324mm
$ env | grep SCALE_FACTOR
QT_SCREEN_SCALE_FACTORS=DisplayPort-0=2;DVI-D-0=1.5
QT_AUTO_SCREEN_SCALE_FACTOR=0

If I start a new Konsole tab on my big display, it looks good. If I start one on my small display, the text is distorted. Zooming in or out using ctrl and the scroll wheel fixes the text for that tab, but then the text gets distorted if I move the window to my big screen, unless I zoom in or out again.

SOFTWARE/OS VERSIONS
Operating System: Debian testing
Konsole Version: 20.12.3
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Comment 5 Yaroslav Fedevych 2022-02-11 14:16:15 UTC
I'm chiming in to say that this problem is present in the latest 5.24 Plasma, the latest Konsole (21.12.2), the  latest frameworks (5.90).

The scaling factors of both screens is the same, 200%. It's X11. There's literally no reason for fonts to change, and yet they do. Konsole is unusable to me because of this, and Plasma apps like systemsettings5 also wreak havoc when moving screens.

The environment variable PLASMA_USE_QT_SCALING has no effect whatsoever.

I understand that Plasma might be trying to be clever because the screens, despite running at the same resolution, are different physical sizes, and yet I wish it wasn't, because it only makes things worse and I have no way to turn the cleverness off.