Bug 499257 - Titles do not center properly when letter spacing is applied
Summary: Titles do not center properly when letter spacing is applied
Status: RESOLVED NOT A BUG
Alias: None
Product: kdenlive
Classification: Applications
Component: Title Clips & Subtitles (show other bugs)
Version: 24.12.1
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2025-01-28 22:11 UTC by capedmadman1941
Modified: 2025-01-29 19:02 UTC (History)
2 users (show)

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


Attachments
Title text with letter spacing applied is not centered properly, appearing to be too far to the left in the frame. (93.40 KB, image/png)
2025-01-28 22:11 UTC, capedmadman1941
Details

Note You need to log in before you can comment on or make changes to this bug.
Description capedmadman1941 2025-01-28 22:11:04 UTC
Created attachment 177779 [details]
Title text with letter spacing applied is not centered properly, appearing to be too far to the left in the frame.

SUMMARY
While using the title tool, text will not center properly when letter spacing is applied.

STEPS TO REPRODUCE
1. Open Kdenlive, open Title tool
2. Enter title text and apply space between letters w/spacing tool
3. Center text with the button above the Properties tab.

OBSERVED RESULT
Text does not properly center because the space applied to the last character of a line is included in the centering calculation.

EXPECTED RESULT
Centered text.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Ubuntu MATE 20.04.6 / Kdenlive 24.12.1 Flatpak
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Also note the typos/errors in the properties tab of the title tool, highlighted in the attached graphic.
Comment 1 emohr 2025-01-29 19:01:52 UTC
Thank you for reporting. I can confirm the "issue". Following your steps.

But this is the correct behavior as space is added to the right of each letter (https://en.wikipedia.org/wiki/Letter_spacing).
Not possible is Kerning (https://en.wikipedia.org/wiki/Kerning).

I close this bug as “not a bug”.

The yellow highlighted text in the screenshot is weird as I don’t have this issue on Windows. Please try with the current Kdenlive AppImage version 24.12.1 to see if there are any packaging issues https://kdenlive.org/en/download/