Bug 407068 - Some views show badly rendered fonts when fractional display scale is used
Summary: Some views show badly rendered fonts when fractional display scale is used
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface (show other bugs)
Version: 19.08.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
: 411677 417144 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-04-29 20:32 UTC by Patrick Silva
Modified: 2022-08-29 16:28 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
fritzibaby: Brainstorm+


Attachments
screenshot (96.91 KB, image/png)
2019-04-29 20:32 UTC, Patrick Silva
Details
kdenlive 19.12.3, display scale 125% (85.71 KB, image/png)
2020-04-01 15:28 UTC, Patrick Silva
Details
19.12.3 - still weird fonts (119.64 KB, image/jpeg)
2020-05-06 06:16 UTC, Marc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2019-04-29 20:32:01 UTC
Created attachment 119728 [details]
screenshot

STEPS TO REPRODUCE
1. open system settings > display and monitor > displays > "Scale display" button,
use the slider to set 1.2 as display scaling factor, click "Ok" button and restart plasma
2. open kdenlive
3. 

OBSERVED RESULT
As we can see in attached screenshot, effects, composition and audio spectrum views show badly rendered fonts.

EXPECTED RESULT
all fonts are rendered correctly.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.3
Comment 1 J Appel 2019-08-28 16:45:41 UTC
*** This bug has been confirmed by popular vote. ***
Comment 2 emohr 2019-08-31 14:17:08 UTC
Just to verify: Please try with the current Kdenlive AppImage version 19.08.0a to see if there are any packaging issues https://files.kde.org/kdenlive/release/
Comment 3 Patrick Silva 2019-08-31 15:01:57 UTC
AppImage version 19.08.0a has the same bug.
Comment 4 Christoph Feck 2019-09-08 00:24:50 UTC
*** Bug 411677 has been marked as a duplicate of this bug. ***
Comment 5 emohr 2019-09-08 12:42:20 UTC
I added it to issue: https://invent.kde.org/kde/kdenlive/issues/347
Comment 6 Guo Yunhe 2019-09-08 12:52:29 UTC
Some parts of Kdenlive are written in QML using Qt Quick Controls 1. Based on my testing, Qt Quick Controls 1 caused this issue. If the QML only use Qt Quick and Qt Quick Controls 2, texts are pretty sharp. But once import QtQuick.Controls 1.4, the whole widget is messed up. Many other apps, including Qt Creator, are also affected by the same issue. I reported to Qt upstream https://bugreports.qt.io/browse/QTBUG-78117

For Kdenlive, I think we can either:

1. Wait Qt to fix this bug. But we probably need to wait for years. Or they even skip it and we have to upgrade to Qt 6.
2. Migrate ALL Qt Quick Controls 1 to Qt Quick Controls 2. Also a lot of work, but we have to do it someday because Qt Quick Controls 1 is old and not well supported.
Comment 7 Phil 2019-09-09 16:14:42 UTC
I do wonder something, If i set my 4k display to 1.4 i get the fonts redered bad as shown here:

https://i.imgur.com/MXlfUdh.png

but if I turn off scaling in KDE I guess there is an auto scaling and it looks great

https://i.imgur.com/LNGcU9w.png
Comment 8 Guo Yunhe 2019-09-11 14:36:57 UTC
Qt has officially ended support for Qt Quick Controls 1 https://bugreports.qt.io/browse/QTBUG-78117

We have to migrate the app to Qt Quick Controls 2. The TreeView seems not existing in Qt QuickControls 2. Maybe we have to redesign the component.
Comment 9 Guo Yunhe 2019-09-11 19:55:37 UTC
Here is a PR in progress https://invent.kde.org/kde/kdenlive/merge_requests/59/diffs
Comment 10 Janne Granström 2019-11-22 12:56:51 UTC
Bug still appear on 19.08.3.

So the fix is there, when we see it on stable?
Comment 11 Patrick Silva 2020-02-04 15:17:39 UTC
*** Bug 417144 has been marked as a duplicate of this bug. ***
Comment 12 Patrick Silva 2020-04-01 15:28:48 UTC
Created attachment 127163 [details]
kdenlive 19.12.3, display scale 125%

cannot reproduce this issue with kdenlive 19.12.3, display scale 125%.

Operating System: Arch Linux 
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.2
Comment 13 Guo Yunhe 2020-04-01 15:33:38 UTC
Can also confirm. Though some little visual glitches, it is overall good and usable. (Scale 150%) Probably fixed in Qt 5.14.1.

Operating System: openSUSE Tumbleweed 20200326
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1
Kernel Version: 5.5.11-1-default
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 31.1 GiB
Comment 14 emohr 2020-04-01 17:39:20 UTC
Could we close this issue then?
Comment 15 Janne Granström 2020-04-01 18:03:13 UTC
No, we need more samples.
Comment 16 Christoph Feck 2020-04-02 01:42:41 UTC
Remains the odd kerning, but that's a Qt issue.
Comment 17 J Appel 2020-04-03 11:58:16 UTC
Looking perfect on 19.12.3, KDE Frameworks 5.68.0, 
Qt 5.14.1 (built against 5.14.1), Arch Linux

I do not see any glitches, artifacts, etc.

Desktop scaled to 125%
Comment 18 Marc 2020-05-06 06:16:48 UTC
Created attachment 128189 [details]
19.12.3 - still weird fonts

This is the first time I am using kdenlive and I am on a 4K display with 150% scaling.
There is only this box (dont know what it is called) where the fonts look horrible (see screenshot).
I am on 19.12.3
Comment 19 farid 2022-08-28 16:27:48 UTC
Can you please try with the latest version and see if you can reproduce?
Comment 20 Patrick Silva 2022-08-29 16:28:55 UTC
Cannot reproduce with kdenlive 22.08 on Arch Linux.