Can't change font for keyboard layout indicator

Bug #733563 reported by Sergey L
42
This bug affects 8 people
Affects Status Importance Assigned to Milestone
xfce4-xkb-plugin
Confirmed
Medium
xfce4-xkb-plugin (Debian)
Fix Released
Unknown
xfce4-xkb-plugin (Ubuntu)
Fix Released
Wishlist
Jackson Doak

Bug Description

Binary package hint: xfce4-xkb-plugin

For example my system font is "Ubuntu"
But, xfce4-xkb-plugin icon (as text) font hardcoded to "Monospace Bold".

file: panel-plugin/xkb-cairo.c
#define XKB_PREFERRED_FONT "Courier New, Courier 10 Pitch, Monospace Bold %d"

1) The release of Ubuntu you are using
Ubuntu 10.10

2) The version of the package you are using
xfce4-xkb-plugin 0.5.3.3-3ubuntu2

3) What you expected to happen
Global system font for keyboard layout icon

4) What happened instead
Monospace Bold font for keyboard layout icon

Tags: patch

Related branches

Sergey L (nfxpnk)
description: updated
tags: added: bug change font
Changed in xfce4-xkb-plugin (Ubuntu):
status: New → Confirmed
importance: Undecided → Wishlist
Ivan Frederiks (idfred)
Changed in xfce4-xkb-plugin (Ubuntu):
assignee: nobody → Ivan Frederiks (idfred)
Revision history for this message
Ivan Frederiks (idfred) wrote :

A solution based on http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576072#15 and code of xfce xfce4-datetime-plugin.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "font_selection.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Changed in xfce4-xkb-plugin (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
In , Lionel Le Folgoc (mrpouit) wrote :

Created attachment 4187
Patch proposed by Ivan Frederiks

Hi,

An xubuntu user reported that the font used by the plugin is harcoded, and that it'd be nice to be able to set it from the settings dialog. I attached the patch he proposed (it seems to apply fine against git master).

Thanks.

Changed in xfce4-xkb-plugin (Ubuntu):
assignee: Ivan Frederiks (idfred) → nobody
Changed in xfce4-xkb-plugin (Debian):
status: Unknown → Confirmed
Changed in xfce4-xkb-plugin (Debian):
status: Confirmed → Fix Released
Changed in xfce4-xkb-plugin (Debian):
status: Fix Released → Confirmed
Jackson Doak (noskcaj)
Changed in xfce4-xkb-plugin (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Jackson Doak (noskcaj)
Revision history for this message
Jackson Doak (noskcaj) wrote :

Could you please re-make the patch for the latest version? If you get it done this week, it should be ready for saucy

Jackson Doak (noskcaj)
Changed in xfce4-xkb-plugin (Ubuntu):
status: In Progress → Confirmed
Jackson Doak (noskcaj)
tags: added: patch-needswork
removed: patch
Revision history for this message
Ivan Frederiks (idfred) wrote :

Hm... I'll try to find some time for this.
Do you mean this week including weekend?
Latest version is 0.5.4.3?

Revision history for this message
Jackson Doak (noskcaj) wrote : Re: [Bug 733563] Re: Can't change font for keyboard layout indicator

Because it's a bugfix it can probably go in any time this month, but
sooner is better

On Tue, Sep 17, 2013 at 10:52 PM, Ivan Frederiks
<email address hidden> wrote:
> Hm... I'll try to find some time for this.
> Do you mean this week including weekend?
> Latest version is 0.5.4.3?
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/733563
>
> Title:
> Can't change font for keyboard layout indicator
>
> Status in xfce4-xkb-plugin:
> Unknown
> Status in “xfce4-xkb-plugin” package in Ubuntu:
> Confirmed
> Status in “xfce4-xkb-plugin” package in Debian:
> Confirmed
>
> Bug description:
> Binary package hint: xfce4-xkb-plugin
>
> For example my system font is "Ubuntu"
> But, xfce4-xkb-plugin icon (as text) font hardcoded to "Monospace Bold".
>
> file: panel-plugin/xkb-cairo.c
> #define XKB_PREFERRED_FONT "Courier New, Courier 10 Pitch, Monospace Bold %d"
>
> 1) The release of Ubuntu you are using
> Ubuntu 10.10
>
>
> 2) The version of the package you are using
> xfce4-xkb-plugin 0.5.3.3-3ubuntu2
>
> 3) What you expected to happen
> Global system font for keyboard layout icon
>
> 4) What happened instead
> Monospace Bold font for keyboard layout icon
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/xkb/+bug/733563/+subscriptions

Revision history for this message
Ivan Frederiks (idfred) wrote :

Uploading updated patch.
There is an important TODO: one should update localization files.

Jackson Doak (noskcaj)
Changed in xfce4-xkb-plugin (Ubuntu):
status: Confirmed → In Progress
Jackson Doak (noskcaj)
tags: added: patch
removed: bug change font patch-needswork
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

A fix would be testable with:

sudo apt-add-repository ppa:timo-jyrinki/ppa
sudo apt-get update
sudo apt-get install xfce4-xkb-plugin

Testing welcome!

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

(for users with Ubuntu 14.04)

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

This would actually need FFe for 14.04 if wanted in, since it's adding a feature. So maybe more suited for uploading for u series.

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Right, this needs an FFe first, and probably it's too late for this cycle. Unsubscribing sponsors for now.

Changed in xkb:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Steve Dodier-Lazaro (sidi) wrote :

<Design SIG hat on>I would actually like to see a patch that simply uses the system font, and dumps any internal reference to a font. Having plugins use a custom font for such an unimportant thing causes usability issues since users who do need a high contrast font must search through multiple UIs to fix the fonts.

The Whiskermenu and Clock plugins can be used as examples. They both use the system font.</Design SIG hat off>

Changed in xfce4-xkb-plugin (Debian):
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xfce4-xkb-plugin - 1:0.7.1-2

---------------
xfce4-xkb-plugin (1:0.7.1-2) unstable; urgency=medium

  * Upload to unstable.

 -- Yves-Alexis Perez <email address hidden> Wed, 06 May 2015 23:12:22 +0200

Changed in xfce4-xkb-plugin (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Pavel Podkorytov (tierpod) wrote :

Patch does not work correctly. Font size not changed (on a screenshot - Monospace 10 and Monospace 16).

Revision history for this message
joshas (joshas) wrote :

Still an issue in Xubuntu 15.10 https://bugs.launchpad.net/ubuntu/+source/xfce4-xkb-plugin/+bug/1510280
Could someone revert or fix font selection patch?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.