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 764556 - regression bad font size since gtk+-3.16.x
regression bad font size since gtk+-3.16.x
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Backend: X11
3.22.x
Other Linux
: High major
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-04-03 18:51 UTC by Evgeniy
Modified: 2018-05-02 17:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Evgeniy 2016-04-03 18:51:11 UTC
I have such display:

screen #0:
  dimensions:    2880x1800 pixels (331x211 millimeters)
  resolution:    221x217 dots per inch

After gtk+-3.16 all versions of gtk+ render text with too small font size.

See https://578146.bugs.gentoo.org/attachment.cgi?id=429582

This is not only in emacs, also in evince and other gtk+ applications.

With gtk+-3.16 all looks good:

https://578146.bugs.gentoo.org/attachment.cgi?id=428892
Comment 1 Evgeniy 2016-04-03 18:52:00 UTC
I mean font size of main menu.
Comment 2 Matthias Clasen 2016-04-07 18:00:44 UTC
any other applications besides emacs that you have a problem with ? does setting GTK_DPI_SCALE=2 make things big enough ?
Comment 3 Evgeniy 2016-04-07 19:01:02 UTC
(In reply to Matthias Clasen from comment #2)
> any other applications besides emacs that you have a problem with ? 

Yes, evince. Actually, I have no more application that
uses gtk+-3.x, only evince and emacs, all other use gtk+2.x.
So I suppose that all gtk+-3.x based applications affected by this bug.


> does setting GTK_DPI_SCALE=2 make things big enough ?

Not sure how to set it,
I try it as process environment variable:
"GTK_DPI_SCALE=2 evince" and no difference between

 "GTK_DPI_SCALE=2 evince" and "evince"
Comment 4 Matthias Clasen 2016-04-08 13:38:46 UTC
Sorry, I typoed the variable name. Please try

GDK_SCALE=2 evince

in a terminal. This is under X11 ?
Comment 5 Evgeniy 2016-04-08 14:23:36 UTC
Yes, with GDK_SCALE=2 evince looks better.
Font size in menu of emacs also looks better,
but appear strange bug with window size of emacs.
Window size by default become huge (several screens by horizontal [at least]) after it(emacs) apply config where I set consolas font as default font.

And with gtk+-3.16.7 all works fine without GDK_SCALE and emacs window size was normal.

>This is under X11 ?

yes, information about DPI in the first post is from xdpyinfo:
screen #0:
  dimensions:    2880x1800 pixels (331x211 millimeters)
  resolution:    221x217 dots per inch
  depths (7):    24, 1, 4, 8, 15, 16, 32

I wrote a program that calc number of pixels in one centimetre using dot per pixels settings above, and draw such line, and measure line with ruler.
So I have correct dpi settings.
Comment 6 Evgeniy 2016-04-08 14:25:03 UTC
Also I found one more application that uses gtk+-3.x on my machine - meld(http://meldmerge.org/) and it also affected by this bug.
Comment 7 Evgeniy 2017-03-30 18:52:56 UTC
I updated gtk+ to gtk+-3.20.9, the bug still here.
Comment 8 Evgeniy 2017-03-31 03:59:50 UTC
I do `git bisect`, the commit that introduce bug is:

$ git bisect good
bdf0820c501437a2150d8ff0d5340246e713f73f is the first bad commit
commit bdf0820c501437a2150d8ff0d5340246e713f73f
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Tue Jul 7 20:39:45 2015 -0400

    Simplify Xft setting fallback
    
    If we don't find Xft values in the X resource db, simply fall
    back to the values that are hardcoded in /etc/X11/Xresources
    anyway. Extra trickery with likely-made-up screen dimensions
    is not going to yield better results, and only makes for a
    deeper rabbit hole when debugging.

:040000 040000 f989b3d72902e59bf045e3e66005745d7a740c1e f01e7be2f1fc9b3eda5768e433d76c3a97089a63 M      gdk
Comment 9 Daniel Boles 2018-04-03 19:22:01 UTC
The code is the same in 3.22. I'm dropping the severity from critical to major; I don't know whether this is really the latter either, but I don't think it qualifies as the former in any case. I'll let someone else decide about further drops.
Comment 10 GNOME Infrastructure Team 2018-05-02 17:02:15 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME'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.gnome.org/GNOME/gtk/issues/612.