Bug 505723 - Stopwatch time is jittery
Summary: Stopwatch time is jittery
Status: RESOLVED FIXED
Alias: None
Product: KClock
Classification: Applications
Component: General (other bugs)
Version First Reported In: 25.04.2
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Devin Lin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-18 07:29 UTC by Filip
Modified: 2025-11-13 04:42 UTC (History)
2 users (show)

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


Attachments
showcase (563.62 KB, video/x-matroska)
2025-06-18 07:29 UTC, Filip
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Filip 2025-06-18 07:29:24 UTC
Created attachment 182348 [details]
showcase

SUMMARY
Stopwatch time is jittery

STEPS TO REPRODUCE
1. Start the stopwatch

OBSERVED RESULT
Timer is jittery

EXPECTED RESULT
Not jittery

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.1
Kernel Version: 6.15.1-arch1-2 (64-bit)
Graphics Platform: Wayland
Comment 1 Martin Sh 2025-11-11 03:01:11 UTC
I couldn't reproduce this on the latest commit (9a4ab5b), and on the reported version commit (91416a3).
Maybe it's something to do with which fonts are used for the stopwatch? There doesn't seem to be any code that enforces that all digits are the same width.
Perhaps a simple fix would be to force a monospace font, instead of the default?
Comment 2 Martin Sh 2025-11-11 03:03:53 UTC
Okay, I can definitely reproduce this after I switch to a different UI font in settings.
Comment 3 Bug Janitor Service 2025-11-11 03:29:16 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kclock/-/merge_requests/234
Comment 4 Bug Janitor Service 2025-11-12 01:04:10 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kclock/-/merge_requests/235
Comment 5 Devin Lin 2025-11-13 04:42:40 UTC
Git commit 6312647f2755921e11eea9ec74b62db3425de15c by Devin Lin, on behalf of Martin Sh.
Committed on 13/11/2025 at 04:40.
Pushed by devinlin into branch 'master'.

Enable `tnum` for the stopwatch to prevent jitter

The `tnum` OpenType feature has been enabled for the stopwatch, ensuring that all
digits have the same width.

M  +2    -0    src/kclock/qml/stopwatch/StopwatchPage.qml

https://invent.kde.org/utilities/kclock/-/commit/6312647f2755921e11eea9ec74b62db3425de15c