Bug 347724 - Digital Clock Plasmoid does not use fixed-width font
Summary: Digital Clock Plasmoid does not use fixed-width font
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock (show other bugs)
Version: 5.3.0
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Martin Klapetek
URL: http://fratti.ch/tmp/clock.mkv
Keywords:
: 353716 360570 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-05-14 16:15 UTC by Nicolas F.
Modified: 2016-03-16 16:09 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.7


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas F. 2015-05-14 16:15:45 UTC
The digital clock applet does not use a fixed-width font (and does not allow customisation of the font at all, it seems), which means that as the seconds tick away, the entire clock text tends to move slightly as not all numbers are of the same width.

Please refer to the linked .mkv (H.264 YUV 4:4:4) to see how it looks. Note the numbers shifting back and forth.

Reproducible: Always

Steps to Reproduce:
1. Enable seconds in clock
2. Watch clock closely
Comment 1 Kai Uwe Broulik 2015-05-14 17:49:10 UTC
Iirc the clock's size is determined by a fixed label, so theoretically it should not shift. Nonetheless the option for font should probably be brought back.
Comment 2 Martin Klapetek 2015-05-21 16:30:09 UTC
*** Bug 348072 has been marked as a duplicate of this bug. ***
Comment 3 Martin Klapetek 2015-05-21 16:31:53 UTC
Nicolas - which font are you using as your system font?

I'll see if I can reproduce.
Comment 4 Nicolas F. 2015-05-21 18:19:50 UTC
(In reply to Martin Klapetek from comment #3)
> Nicolas - which font are you using as your system font?
> 
> I'll see if I can reproduce.

Liberation Sans 8 at 144 DPI.
Comment 5 Chris Warrick 2015-08-31 15:01:14 UTC
I have a similar problem in Plasma Shell 5.4.0. Even though I can set a Monospace font, the width of the text box still changes.

It used to work with a non-monospace font a few days ago (before an update).
Comment 6 Tommi Tervo 2015-09-27 09:48:53 UTC
This is quite annoying, all icons in a system tray move to the left and the right. (5.4.1)
Comment 7 Daniel Faust 2016-02-17 16:25:17 UTC
*** Bug 353716 has been marked as a duplicate of this bug. ***
Comment 8 Martin Klapetek 2016-03-15 16:34:14 UTC
*** Bug 360570 has been marked as a duplicate of this bug. ***
Comment 9 Daniel Faust 2016-03-16 16:09:50 UTC
Git commit e7f09ba1eb976c4f282145016d34fe87de515a25 by Daniel Faust.
Committed on 16/03/2016 at 15:56.
Pushed by dfaust into branch 'master'.

Use fixed width for digital clock applet

Set the width of the time label to the width of the widest time string.
REVIEW: 127102

M  +38   -8    applets/digital-clock/package/contents/ui/DigitalClock.qml

http://commits.kde.org/plasma-workspace/e7f09ba1eb976c4f282145016d34fe87de515a25