Bug 524257 - Digital Clock doesn't fully respect configured OpenType font features
Summary: Digital Clock doesn't fully respect configured OpenType font features
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock widget (other bugs)
Version First Reported In: 6.7.4
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2026-08-14 11:10 UTC by sandyforrest001
Modified: 2026-10-30 16:57 UTC (History)
2 users (show)

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


Attachments
Demonstration and comparisons (113.75 KB, image/png)
2026-08-14 11:10 UTC, sandyforrest001
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sandyforrest001 2026-08-14 11:10:28 UTC
Created attachment 195149 [details]
Demonstration and comparisons

DESCRIPTION
The clock widget incorrectly handles OpenType font features when set in System Settings / kdeglobals. The Date section behaves as expected regardless of layout (and the font is displayed correctly as in other programs), while the Time section uses the correct font but disregards features and uses odd spacing.

STEPS TO REPRODUCE
1. Change fonts in System Settings to a font supporting OpenType features
2. Enter desired features in the font selector box
3. Restart plasmashell as needed to apply changes
4. Observe that the features are correctly used by all parts of Plasma except the digital clock's Time section

OBSERVED RESULT
The date uses correct font features (as does the rest of Plasma), while the time does not respect the configuration and the font is unchanged from its default. The clock itself also appears to be forced monospace, with 1s in particular being oddly spaced out.

EXPECTED RESULT
Font features are applied consistently everywhere

SOFTWARE/OS VERSIONS
Operating System: Fedora Kinoite 44
KDE Plasma Version: 6.7.4
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1

ADDITIONAL INFORMATION
Demonstrated with the Inter font
Features used are: calt,case,cv06,cv10,cv11,dlig,frac,ss01,ss04
Comment 1 Kai Uwe Broulik 2026-08-14 17:35:02 UTC
Wonder if that's because we explicit use tnum for the clock (in 6.7 already I think) and maybe that overwrites any globally set features?
Comment 2 sandyforrest001 2026-08-14 18:32:52 UTC
(In reply to Kai Uwe Broulik from comment #1)
> Wonder if that's because we explicit use tnum for the clock (in 6.7 already
> I think) and maybe that overwrites any globally set features?

That would make sense, the spacing seems to match with only using tnum. I can't see an option to specify features in the widget's font selector either.

(Also if it's worth anything the lock screen clock does use font features as expected)
Comment 3 Bug Janitor Service 2026-10-26 17:59:55 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/7299
Comment 4 Niccolò Venerandi 2026-10-27 00:02:12 UTC
Git commit dc5f26b296c48a5705c37102152aff16fa6c93b8 by Niccolò Venerandi.
Committed on 27/10/2026 at 00:01.
Pushed by niccolove into branch 'master'.

applets/digital-clock: Keep the system font's OpenType features for the time

The time label sets font.features to { "tnum": 1 } so that the digits
are tabular and the clock does not jitter while the time changes.
Assigning font.features replaces the whole feature map, so all features
inherited from the system font were dropped for the time only.

M  +1    -1    applets/digital-clock/DigitalClock.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/dc5f26b296c48a5705c37102152aff16fa6c93b8
Comment 5 Niccolò Venerandi 2026-10-27 00:02:31 UTC
Git commit e65d6fab9c2501cbc20a6fff63694e6072713e8a by Niccolò Venerandi.
Committed on 27/10/2026 at 00:02.
Pushed by niccolove into branch 'Plasma/6.8'.

applets/digital-clock: Keep the system font's OpenType features for the time

The time label sets font.features to { "tnum": 1 } so that the digits
are tabular and the clock does not jitter while the time changes.
Assigning font.features replaces the whole feature map, so all features
inherited from the system font were dropped for the time only.


(cherry picked from commit dc5f26b296c48a5705c37102152aff16fa6c93b8)

Co-authored-by: Niccolò Venerandi <niccolo@venerandi.com>

M  +1    -1    applets/digital-clock/DigitalClock.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/e65d6fab9c2501cbc20a6fff63694e6072713e8a