! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Fixed width or separate font for the clock
Status:
RESOLVED: MOVED
Severity:
enhancement
Product:
Xfce4-panel

Comments

Description Denis 2019-09-21 19:47:31 CEST
I have the clock in format "%d %a %T", so I have seconds displayed. When the time changes from, say 20.32.00 to 20.32.01, the whole panel to the left of the clock jitters left and right. Since most digits in non-monospace fonts have different widths, it happens almost every second. This could be fixed by giving the clock a fixed width (but there is no such option) or using a monospace font, but it does not look nice having a monospace font for the whole UI.

So, could we please have the clock with a fixed width or the possibility to set a monospace font for the clock separately from the font used for the rest of the UI?
Comment 1 oren.barnea 2019-09-21 21:17:59 CEST
You can change the font of the clock without changing the rest of the UI. See here, for example:
https://forum.peppermintos.com/index.php?topic=7207.0
Comment 2 Denis 2019-09-22 06:39:34 CEST
(In reply to oren.barnea from comment #1)
> You can change the font of the clock without changing the rest of the UI.
> See here, for example:
> https://forum.peppermintos.com/index.php?topic=7207.0

Thanks, that works! For the future, what documentation should I look into for such things?
Comment 3 oren.barnea 2019-09-22 06:51:38 CEST
Glad to hear it helped.
I'm afraid I don't remember how I found this solution. I had a similar problem a few years ago and just googled for a solution.
I do remember it wasn't very easy to find.
Comment 4 Andre Miranda editbugs 2019-09-26 02:23:10 CEST
Right click the clock plugin, select Properties and then stop the cursor over the question mark icon beside the custom format field, it will give a hint that markup is supported.
Clicking on Help leads to https://docs.xfce.org/xfce/xfce4-panel/4.14/clock which mentions Pango markup, although that page may be expanded to include more examples.
Comment 5 Git Bot editbugs 2020-05-28 02:15:54 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfce4-panel/-/issues/261.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #15978

Reported by:
Denis
Reported on: 2019-09-21
Last modified on: 2020-05-28

People

Assignee:
Xfce Bug Triage
CC List:
2 users

Version

Version:
4.14.0

Attachments

Additional information