Bug 439659 - Overlapping characters in titles rendered incorrectly
Summary: Overlapping characters in titles rendered incorrectly
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Video Display & Export (show other bugs)
Version: 20.12.3
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-08 22:47 UTC by phylor+kdebugs
Modified: 2022-05-01 16:20 UTC (History)
3 users (show)

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


Attachments
Incorrect rendering in preview video (13.57 KB, image/png)
2021-07-08 22:47 UTC, phylor+kdebugs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description phylor+kdebugs 2021-07-08 22:47:55 UTC
Created attachment 139961 [details]
Incorrect rendering in preview video

SUMMARY

Overlapping characters in fonts (e.g. Pacifico [1]) are rendered as the background and not the font color.

This happens both in the preview video and in the rendered video. In the title editor, the font is rendered correctly.

This behavior was introduced in 20.12.3 (it is still present in 21.04.2). Version 20.12.2 renders the font correctly. Maybe this has something to do with the typewriter feature? However, the rendering is incorrect irrelevant whether typewriting is used or not.

Note that there has been a similar bug in Krita a couple of years ago [2].

[1] Pacifico font: https://fonts.google.com/specimen/Pacifico?query=pacifico
[2] Krita bug: https://bugs.kde.org/show_bug.cgi?id=361169

STEPS TO REPRODUCE
1. Install Pacifico [1] on your system (or any other overlapping font)
2. Create a new title
3. Write any text using the overlapping font (it is rendered correctly in the title editor)
4. Pull the title into a video lane. The preview video renders the font incorrectly.
5. Render the video. The font is rendered incorrectly in the output video.

OBSERVED RESULT
The overlapping area of characters is rendered in the background color.

EXPECTED RESULT
Font is rendered correctly in the preview video as well as the rendered video. Overlapping areas are rendered using the font color as well.

SOFTWARE/OS VERSIONS
Windows: -
macOS: -
Linux/KDE Plasma: ArchLinux, Kernel 5.12.13-zen1-1-zen
(available in About System)
KDE Plasma Version: n/a (using i3 without KDE)
KDE Frameworks Version: 
Qt Version: 5.15.2+kde+r207-1

ADDITIONAL INFORMATION
Comment 1 Matt Williams 2022-04-25 12:58:38 UTC
I am seeing this behaviour in kdenlive 22.04.0 with the "Lobster" and "Loster Two" fonts. I am using MLT 7.4.0 if that is relevant.
Comment 2 emohr 2022-04-27 15:42:51 UTC
@Matt Can you update MLT to 7.7 to see i fit still happen? I don't have the issue with MLT 7.7.
Comment 3 Matt Williams 2022-04-28 15:23:52 UTC
The newest version of MLT seems to be 7.6.0 but the latest in openSUSE is 7.4.0. Confusingly, the package is named `libmlt++-7-7` with a version number of 7.4.0-2.2 and contains the file `/usr/lib64/libmlt++-7.so.7.4.0`.
Comment 4 emohr 2022-04-28 18:13:08 UTC
Yes, MLT 7.6 is the official version. To see if there are any packaging issues try with the current Kdenlive AppImage version 21.21.3  https://kdenlive.org/en/download/
Comment 5 Matt Williams 2022-04-28 21:21:58 UTC
The bug was still present in the Flatpak version on that page but the AppImage works correctly. I notice that the AppImage is version 21.12.3 but the openSUSE packaged version is 22.04.0. The bug was present in the RPM version 21.12, so as you say there's clearly some packaging or dependency version difference.
Comment 6 phylor+kdebugs 2022-05-01 16:20:37 UTC
Tested in 22.04.0 and can no longer reproduce. Thanks!