Bug 445807 - Konsole: Font rendering does not properly adapt to display DPI
Summary: Konsole: Font rendering does not properly adapt to display DPI
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: font (show other bugs)
Version: 21.08.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-20 12:37 UTC by Jakub Veselý
Modified: 2024-12-31 03:47 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of the compressed text on the low dpi monitor (42.69 KB, image/png)
2021-11-20 12:37 UTC, Jakub Veselý
Details
FHD HDMI, 4K DP, FHD DVI (1.85 MB, image/png)
2023-03-29 16:04 UTC, slavko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Veselý 2021-11-20 12:37:18 UTC
Created attachment 143763 [details]
Screenshot of the compressed text on the low dpi monitor

SUMMARY
When konsole is moved to lower DPI display (1440p) from a higher DPI display (4K) the text ends up compressing itself and becomes unreadable. This also affects any new text that is input or printed. Global scale is also set to 150%. 

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT
Text is compressed on the lower DPI display (see attachment).

EXPECTED RESULT
Text is readable.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Graphics platform: X11
Graphics driver: NVidia proprietary 495.44
Comment 1 Jakub Veselý 2021-11-20 12:40:43 UTC
I apologise for missing the repro steps, first time reporting a bug here and I was trying to add an attachement ( and I cannot see an edit button for the text). It happens after restart and stays that way. Restarting konsole does not help, however sometimes, the problem inverts itself and the text is readable only on the low DPI and becomes too wide on the high DPI display.
Comment 2 slavko 2023-03-29 16:02:18 UTC
Hello i also have this problem. Three screens, one of the screens (dvi) decides that in the same resolution the size is bigger and fonts are too squished.

Funnily my previous machine running three monitors (discrete amd gpu) worked fine, now i use integrated amd gpu (5600g).
Comment 3 slavko 2023-03-29 16:04:23 UTC
Created attachment 157694 [details]
FHD HDMI, 4K DP, FHD DVI

The hdmi and 4k monitors are fine, as soon as the window crosses the DVI border the font is distorted.
Also the HDMI screen shows konsole saying size: 181x45 and the DVI screen says size 273x66, but both are FHD same size screens.
Screen 0: minimum 320 x 200, current 7680 x 2160, maximum 16384 x 16384
HDMI-A-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00*+  50.00    59.94  
   1680x1050     59.88  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x960      60.00  
   1280x800      60.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  
HDMI-A-1 connected 1920x1080+5760+0 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00*+
   1680x1050     59.88  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x960      60.00  
   1280x800      60.00  
   1280x720      60.00  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    66.67    59.94  
   720x400       70.08  
DisplayPort-0 connected primary 3840x2160+1920+0 (normal left inverted right x axis y axis) 621mm x 341mm
   3840x2160     60.00*+  30.00    25.00    24.00    29.97    23.98  
   1920x2160     59.99  
   2560x1440     59.95  
   1920x1200     60.00  
   1920x1080     60.00    60.00    50.00    50.00    59.94  
   1600x1200     60.00  
   1680x1050     59.95  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1280x800      60.00  
   1280x720      60.00    50.00    59.94  
   1024x768      60.00  
   800x600       60.32    56.25  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94
Comment 4 slavko 2023-03-29 16:05:03 UTC
I also have global scale set to 150%.
Comment 5 Marko Schuetz Schmuck 2023-08-16 15:53:55 UTC
I think this is the same issue: whenever I connect/disconnect an external monitor and mirror what's displayed font rendering in konsole gets messed up: the cursor position seems to advance more than what the font's characters are actually wide.

I imagine there could be a workaround: hook into resolution/DPI change event and trigger font size up/down in konsole. I'm not familiar enough with the internals to do this myself.
Comment 6 Christoph Cullmann 2024-12-01 20:31:58 UTC
Can you try a more recent 24.08 version? Thanks!
Comment 7 Bug Janitor Service 2024-12-16 03:46:50 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2024-12-31 03:47:31 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.