#498662 libgtk2.0-0: Some fonts too large on 130dpi display

Package:
libgtk2.0-0
Source:
gtk+2.0
Description:
GTK graphical user interface library - old version
Submitter:
Antony Gelberg
Date:
2010-06-06 12:18:09 UTC
Severity:
normal
#498662#5
Date:
2008-09-12 00:58:19 UTC
From:
To:
Hi,

This problem manifests itself on a laptop display, 1680x1050, 15" widescreen.
Here are the specs from xdpyinfo:
screen #0:
  dimensions:    1680x1050 pixels (331x207 millimeters)
  resolution:    129x129 dots per inch

I have a fresh lenny install, and no .gtkrc files in my home directory.  Some
fonts are massive by default, which looks a bit silly, as well as being
inconvenient.  However, it's only certain GTK fonts that are affected.  For
example, everything in rhythmbox is affected.  In iceweasel, the menu bar and
tab bar are affected, but the actual web page is fine (different renderer?).

I assume this is something to do with libgtk trying to compensate for the
130dpi by making the font larger.  Leaving aside the principle of whether this
is desirable behaviour (I chose a high resolution display to get more on
the screen, not have fonts automagically change size), I think it's
over-compensating.  But really it shouldn't compensate at all, in my opinion.
I have a 100dpi 1680x1050 display on another machine, running the same
software, and it's fine.

Of course, this may not be a libgtk bug, but I assume it is, as default fonts
in non-gtk apps are fine (nice and small on this screen).  I have taken a
couple of screenshots to illustrate[1].  Please let me know if I can provide any
more useful information about my setup in order to debug this.

Antony

[1] http://www.wayforth.co.uk/debian/shot1.png
http://www.wayforth.co.uk/debian/shot2.png

#498662#10
Date:
2008-09-12 09:41:24 UTC
From:
To:
Le vendredi 12 septembre 2008 à 01:58 +0100, Antony Gelberg a écrit :

This is intentional. When you ask for a 12pt font, it needs to use more
pixels on a 130 dpi screen than on a 100dpi one.

On the contrary, Iceweasel is probably buggy for not taking into account
your screen resolution.

Cheers,