After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 152529 - Empty status bar is smaller by 1 pixel with no hinting
Empty status bar is smaller by 1 pixel with no hinting
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: general
1.5.x
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2004-09-13 18:29 UTC by Vincent Noel
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot showing the difference between an empty and non-empty status bar (6.32 KB, image/png)
2004-09-13 18:30 UTC, Vincent Noel
Details

Description Vincent Noel 2004-09-13 18:29:55 UTC
When there is no text in the status bar, it is smaller by 1 pixel than when
there is text in it. This creates weird effects when your mouse pointer hovers
on http links in a feed post : the status bar resizes every time, and with it
the side pane and main post window.
Comment 1 Vincent Noel 2004-09-13 18:30:25 UTC
Created attachment 31533 [details]
Screenshot showing the difference between an empty and non-empty status bar
Comment 2 Mikael Hallendal 2004-09-14 19:09:57 UTC
Hmm .. is Blam the only application you see this in? I'm only using the standard
status bar. I've also never seen this myself.
Comment 3 Vincent Noel 2004-09-14 19:21:30 UTC
Maybe Blam is just making the behavior obvious... I'm trying right now with
evolution, and the status bar size does not change when I'm hovering over links.
I thought it was maybe due to the theme I was using, but it does the same thing
with all themes (even Simple).
I'll try to see if I can replicate this with other apps.
Comment 4 Vincent Noel 2004-09-16 16:34:28 UTC
A fun side-effect :
when I hover over a link, the "active post" area becomes smaller, and when I
hover out of a link, the active post scrolls up 1 pixel.
If I continuously move the mouse on and off a link, the active post scrolls up.
Quite entertaining for a while :)
Comment 5 Vincent Noel 2004-09-16 21:14:46 UTC
I just found another application where I get the same behavior :
in the new gnome-volume-control (cvs HEAD). When I hover on the small speakers,
the status bar gets bigger by 1 pixel.
Comment 6 Mikael Hallendal 2004-09-18 09:49:09 UTC
Hmm .. this is really weird. I've never seen anything like this. What GTK+ are
you using?
Comment 7 Vincent Noel 2004-09-20 14:44:03 UTC
I've just rebuild gtk+ from cvs HEAD and the bug still happens...
Comment 8 Mikael Hallendal 2004-09-20 17:34:13 UTC
That's not what I asked, what version did you have before? Did you have 2.2, 2.4
or HEAD? 

If you where using HEAD then please try it with GTK+ 2.4 since that's what
supported.
Comment 9 Vincent Noel 2004-09-20 18:20:39 UTC
Yes I was using HEAD.
I'm going to try with 2.4.10 and I'll let you know.
Comment 10 Vincent Noel 2004-09-20 18:41:17 UTC
Same thing with 2.4.10.
Maybe something is wrong with my X11 or freetype config...
If you have any suggestion please let me know. Thanks for the help !
Comment 11 Mikael Hallendal 2004-09-21 12:16:09 UTC
Hmm .. no actually I have no idea :) 

The problem seems to be that before you have any text in there it calculates the
wrong height by one pixel. What Pango are you using and have you tried to
downgrade it as well? I'm using Pango 1.4.1 with GTK+ 2.4.10.
Comment 12 Vincent Noel 2004-09-21 14:21:42 UTC
Yeah I've tried downgrading pango... With the combo you use (pango 1.4.1 / gtk+
2.4.10), I still see the bug.
However, I'm pretty sure I only saw the bug appear recently... So it must come
from a new version of something. I'm investigating ;-)
Comment 13 Mikael Hallendal 2004-09-21 14:27:05 UTC
OK, thanks!
Comment 14 Vincent Noel 2004-09-21 14:53:14 UTC
Ok. I found where the issue lies.

This bug only appears if you use the option "no hinting" in the font preferences
panel (font preferences/details). When you use any kind of hinting
(slight/strong/whatever), the status bar behaves normally.

I'm going to experiment with gtk+/pango to see if that bug was introduced recently.
Comment 15 Vincent Noel 2004-09-21 15:17:08 UTC
I'm re-assigning to pango since that must be where the problem is. And changing
the title.
Comment 16 Owen Taylor 2004-09-21 15:51:36 UTC
Not sure that this isn't a GTK+ bug ... for the status bar to use
GtkLabel requests means that it size *inevitably* depends on the text ...
try putting text in different scripts into the status bar and it will
likely be much more obvious.
Comment 17 Vincent Noel 2004-09-21 16:13:55 UTC
Of course, the size of the status bar should depend on the size of the chosen
font... But the status bar should not change size wether there is text or no
text inside.
Just for the record, the bug is triggered for me with any font with no hinting.
It does not appear for some font sizes (e.g. at 16 pixels the bug disappears)
but for all the other sizes, the size difference between a full status bar and
an empty one is always 1 pixel.
Comment 18 Owen Taylor 2004-09-21 16:47:24 UTC
What I mean is that if you enter multilingual text, then Pango/GtkLabel
will select different fonts that can't be predicted in advance for the
text in the status bar, so the status bar will change size. 

GtkEntry, by comparison picks a fixed size based on the current language
(same as the size of the empty line, as it happens)

Comment 19 Vincent Noel 2004-09-21 16:54:57 UTC
Ok, I understand your comments now.
However, my desktop locale is en_US, so there's no multilingual text involved
whatsoever. 
Comment 20 Mikael Hallendal 2004-09-21 20:52:32 UTC
Removing myself since the problem doesn't seem to be in Blam.
Comment 21 Owen Taylor 2004-09-22 20:31:48 UTC
Fixed in CVS:

Wed Sep 22 16:15:40 2004  Owen Taylor  <otaylor@redhat.com>
                                                                               
                    
        * pango/pangoxft-font.c (pango_xft_font_get_glyph_extents): Use
        get_glyph_extents_raw() when hinting is disabled as well
        as when we are transforming. (#152529, Vincent Noel)

(I'm going to ignore possible GtkStatusBar improvements with respect to
multilingual text and wait until someone complains)