"Add to Panel..." assumes and hard-codes font sizes

Bug #60345 reported by Travis Reitter
28
Affects Status Importance Assigned to Milestone
gnome-panel (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-accessibility-themes

Ubuntu's "Add to Panel..." dialog hard-codes font sizes for launchers whose text label requires two lines at size 10. (Interestingly, if the Application font size is changed to a larger size while the dialog is open, it will apply it to all launcher text labels).

For the text that does use the system font size correctly, the dialog assumes it is the same size as the hard-coded font size, and will only take up one line. See the attached screenshot.

Steps to reproduce:

1. Open "System > Preferences > Font Preferences".
2. Change Application font size to 16.
3. Close Dialog.
4. Right-click on panel and open "Add to Panel..." dialog box.

Revision history for this message
Travis Reitter (treitter-dev) wrote :

Notice the text label selection box for "Modem [Monitor]" and the icons overlapping with text and horizontal rules.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Manu: do you know if the gnome-panel patch uses fixed width and height?

Changed in gnome-themes:
assignee: nobody → desktop-bugs
importance: Untriaged → Medium
Revision history for this message
Manu Cornet (lmanul) wrote :

This seems to depend on the kinds of applets (maybe internal applets). However, the problem with horizontal lines overlapping the text doesn't seem to appear on my system (screenshot attached). I'm investigating on this, marking as in progress.

Changed in gnome-panel:
status: Unconfirmed → In Progress
Revision history for this message
Manu Cornet (lmanul) wrote :

Ok, there seems to be nothing wrong with the layout code itself, but the "add to panel" dialog doesn't seem to be aware of the new font size fast enough. I have just tried this:

1. Change the application font to 16
2. Open the "add to" dialog, the fonts are all mixed up
3. killall gnome-panel
4. Open the dialog again: everything looks fine (fonts, rounded rectangles, etc.)

I need to find out how to notify the dialog about the font change.

Revision history for this message
Michael R. Head (burner) wrote :

Hm... in my dupe (bug 133409) on gutsy, I've rebooted and still have inconsistent font size selection in the add to panel dialog.

Revision history for this message
Josh Lee (jleedev) wrote :

> This seems to depend on the kinds of applets (maybe internal applets).

This might not be right, because in your screenshot, Clock and Tomboy have the same font size, but in mine, they have different font sizes.

Revision history for this message
Michael R. Head (burner) wrote :

When approaching a fix to this bug, don't forget to try multiple DPI settings for the font renderer (don't change just the font size).

Revision history for this message
ngc2997 (ngc2997-deactivatedaccount) wrote :

Actually seems to depend on whether the applet's description has more than one line; see another example in the attachment (Gutsy, 32bit).

Revision history for this message
Michael R. Head (burner) wrote :

Good call ngc2997. But I'm not sure which is the cause and which is the effect!

Revision history for this message
ngc2997 (ngc2997-deactivatedaccount) wrote :

Of course; either way, the effect is a bit annoying (yet rather cosmetic).. Btw, I haven't noticed this in Feisty.

Revision history for this message
Dylan McCall (dylanmccall) wrote :

Reproduced this bug in Hardy. Fonts were consistent after I changed the font size, originally. However, once I restarted the system, it was back to the old ways; some items were following my new size 8 font, while others were still using size 10.

Revision history for this message
Dylan McCall (dylanmccall) wrote :

I have observed the behaviour with (only) the following applets. This is recorded with Gutsy. Hardy seems to follow the same pattern, though another pair of eyes would be helpful.

-"Address Book Search"
-"Dictionary Lookup"
-"Workspace Switcher"
-"Clipboard Text Encryption"
-"Battery Charge Monitor"
-"Brightness Applet"
-"Computer Temperature Monitor"
-"CPU Frequency Scaling Monitor"
-"Hardware Sensors Monitor"
-"Terminal Server Client Applet"
-"Character Palette"
-"Connect To Server..."
-"Keyboard Accessibility Status"
-"Keyboard Indicator"
-"Search for Files"

Note that some of my listed applets are not included by default, which undoubtedly makes the puzzle more puzzling.

Revision history for this message
hairy_Palms (mm294) wrote : Re: [Bug 60345] Re: "Add to Panel..." assumes and hard-codes font sizes

Dylan McCall wrote:
> I have observed the behaviour with (only) the following applets. This is
> recorded with Gutsy. Hardy seems to follow the same pattern, though
> another pair of eyes would be helpful.
>
> -"Address Book Search"
> -"Dictionary Lookup"
> -"Workspace Switcher"
> -"Clipboard Text Encryption"
> -"Battery Charge Monitor"
> -"Brightness Applet"
> -"Computer Temperature Monitor"
> -"CPU Frequency Scaling Monitor"
> -"Hardware Sensors Monitor"
> -"Terminal Server Client Applet"
> -"Character Palette"
> -"Connect To Server..."
> -"Keyboard Accessibility Status"
> -"Keyboard Indicator"
> -"Search for Files"
>
> Note that some of my listed applets are not included by default, which
> undoubtedly makes the puzzle more puzzling.
>
>
Ive always found, that its only on applets who's name is long enough to
need two lines whos fonts are wrong, for example if you set all the
gnomt font properties to 8 and restart then the only ones who's fonts
are wrong for me 9though i dont have many of your ones installed) is

Battery Charge Monitor
CPU Frequency Scaling Monitor
Keyboard Accessibility Status

which are the longest names, thats the only thing they have in common as
far as i have been able to see

Revision history for this message
Sebastien Bacher (seb128) wrote :

That is fixed in hardy where the upstream dialog is used now

Changed in gnome-panel:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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