Bug 413643 - bounding box of fonts is calculated wrongly
Summary: bounding box of fonts is calculated wrongly
Status: RESOLVED UPSTREAM
Alias: None
Product: konsole
Classification: Applications
Component: font (show other bugs)
Version: 18.12.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-30 17:06 UTC by Elmar Stellnberger (AT/K)
Modified: 2019-11-11 11:19 UTC (History)
0 users

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


Attachments
screenshot of clipped fonts (112.51 KB, image/png)
2019-10-30 17:06 UTC, Elmar Stellnberger (AT/K)
Details
good font bounding boxes - just another start of konsole from the external 4K display (58.54 KB, image/png)
2019-10-30 17:28 UTC, Elmar Stellnberger (AT/K)
Details
unadjusted bounding boxes when moving to the integrated display (34.20 KB, image/png)
2019-10-30 17:30 UTC, Elmar Stellnberger (AT/K)
Details
attachment-16808-0.html (1.84 KB, text/html)
2019-10-30 19:40 UTC, tcanabrava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Elmar Stellnberger (AT/K) 2019-10-30 17:06:20 UTC
Created attachment 123599 [details]
screenshot of clipped fonts

The bounding box of fonts is calculated wrongly by KDE so that font output often gets clipped. This is particularely visible in console but can be observed throughout the whole of KDE when it comes to alert/message boxes. See for the screenshot.
Comment 1 Elmar Stellnberger (AT/K) 2019-10-30 17:27:23 UTC
The problem seems in deed be related to the different pixel density of my integrated and of my external display. When I move console from one display to the other the font size is adjusted but the font bounding boxes are not. That kind of adjustment is quite a cool feature though it still needs some bugfix. I wonder whether there is some way to switch the feature off for the meantime.
Comment 2 Elmar Stellnberger (AT/K) 2019-10-30 17:28:18 UTC
Created attachment 123600 [details]
good font bounding boxes - just another start of konsole from the external 4K display
Comment 3 Elmar Stellnberger (AT/K) 2019-10-30 17:30:01 UTC
Created attachment 123601 [details]
unadjusted bounding boxes when moving to the integrated display

The system start menu is now on the external display so it starts the application correctly on that monitor. However when I move it to the integrated display then the bounding boxes remain too large (integrated: FullHD, external: 4K)
Comment 4 Elmar Stellnberger (AT/K) 2019-10-30 17:35:57 UTC
I have selected force DPI 128 at systemsettings5 and now the problem is gone. That setting is necessary in order to have a not too small font size for Firefox. However I would welcome the KDE internal font size adjustment for KDE apps as soon as that problem is fixed. There should be a setting 'force DPI for non-KDE apps'.
Comment 5 tcanabrava 2019-10-30 19:40:28 UTC
Created attachment 123607 [details]
attachment-16808-0.html

Please update konsole, I believe this has been fixed for more than a year

On Wed, 30 Oct 2019 at 10:06 Elmar Stellnberger <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=413643
>
>             Bug ID: 413643
>            Summary: bounding box of fonts is calculated wrongly
>            Product: konsole
>            Version: 18.12.3
>           Platform: openSUSE RPMs
>                 OS: Linux
>             Status: REPORTED
>           Severity: normal
>           Priority: NOR
>          Component: font
>           Assignee: konsole-devel@kde.org
>           Reporter: estellnb@elstel.org
>   Target Milestone: ---
>
> Created attachment 123599 [details]
>   --> https://bugs.kde.org/attachment.cgi?id=123599&action=edit
> screenshot of clipped fonts
>
> The bounding box of fonts is calculated wrongly by KDE so that font output
> often gets clipped. This is particularely visible in console but can be
> observed throughout the whole of KDE when it comes to alert/message boxes.
> See
> for the screenshot.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 6 Christoph Feck 2019-11-11 11:19:52 UTC
According to the screenshot, even QPushButton is affected.

If you can reproduce this issue with a recent Qt version (Qt 5.12.4 or later), please report this issue directly to Qt developers via https://bugreports.qt.io/

You could try the Tumbleweed Live ISOs for testing.