So, after an upgrade to gnome 2.2, I open mozilla-1.2.1-r5, and the UI fonts are dbouble size, and BOLD. At the time I was was just like, "Ok, I'll just add a test user with a fresh config, because this much just be one of those upgrading issues". No luck, the grotesquely large fonts stuck around. So, I started up twm to test mozilla. The fonts were fine. Tried gnome 2.2 again, and it became evident that gnome 2.2 was the problem. I don't think that it's xft2 or fontconfig, because mozilla works fine outside of gnome 2.2. So, I purged any packages that could possibly pose a problem, and rebuilt ALL of xfree, gnome, and mozilla. The problem persists. If all gnome maintainers are already busy, I would suggest talking to the mozilla maintainers, and ask them to mask AA'd mozilla for people who USE=gnome. Reproducible: Always Steps to Reproduce: 1. emerge sync 2. emerge -up gnome 3. emerge gnome Actual Results: ACK, the fonts, they rot the eyes! Expected Results: Why is gnome 2.2 tampering with mozilla's fonts? Mozilla works fine outside of gnome 2.2... Portage 2.0.46-r12 (default-1.0, gcc-2.95.3, glibc-2.2.5-r7) ================================================================= System uname: 2.4.19-gentoo-r10 i686 AMD Athlon(tm) Processor GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/home/distfiles" PKGDIR="/home/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi cups encode jpeg libg++ libwww mikmod mmx mpeg ncurses pdflib quicktime spell truetype xml2 xmms xv berkdb gdbm gif gnome gnome-libs gtk imlib java motif oggvorbis opengl pam perl png python readline sdl slang ssl tcpd tiff X -kde -arts -nls -svga -crypt samba dvd mozilla -qt -qtmt -gpm moznoirc moznocompose esd" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
fondle around a bit with your fontsettings, my fonts are perfectly fine. And mozilla uses its own fontconfig/xft stuff, so it can only be environment vars or something.
AFAIK if you compile mozilla with Gtk2 support ( have to use gtk2 USE flag plus WANT_GTK2 var ), then your Gnome 2 font settings will affect mozilla UI fonts. Is that the problem? Also, if you didn't compile mozilla with Gtk2, your gtkrc will affect your mozilla UI. KDE uses .gtkrc-kde file to set UI of Gtk based programs to be consistant with the rest of the environment ( at least it tries :) ) and Gnome 2 creates something like .gtkrc-gnome2 or something like that. check your home dir for any files starting with .gtkrc may be that will solve your problem.
1. aren't .gtkrc type files parsed even *outside* of gnome-session? 2. the mozilla gtk2 port has unresolved issues. it is not currently ready. (maybe 1.3 will fix it...) 3. .gtkrc-1.2-gnome2 is "# Autowritten by gnome-settings-daemon. Do not edit" endl "include "~/.gtkrc.mine" There are no other gtkrc's from a fresh config, and gnome 2.2 breaks the old ones. (Yes I tested it) 4. the problem seems to be, because gnome 2.2 IGNORES .gtkrc 5. gnome's startup scripts should be modified to cp a user's .gtkrc into .gtkrc.mine, if this would fix things. 6. the only discrepency with ^, is that mozilla works fine without a .gtkrc, as long as gnome-session isn't running...
hmmm. Well, I started gnome-session remotely, (from a kde box even) just to see how it would handle fonts. Mozilla fonts are still grotesquely large, but, get this...it modified my kde desktop fonts, the same way it modifies the mozilla ones, even after I restarted kdesktop. (the desktop-icon app) The only part of the kde box that was being accessed was the xserver. This is to say: GNOME 2.2 IS DOING SOMETHING WITH XRENDER THAT IT SHOULDN'T. Might it be one of the patches? Dropline doesn't seem to have a problem.
A couple of points: 1. gtk2/gnome2 sources the newer ~/.gtkrc-2.0 2. gtk1/gnome1.x sources the older ~/.gtkrc 3. according to your use flags, you would have compiled mozilla with gtk1, and not gtk2. 4. what sort of DPI settings are you running? mozilla renders its UI fonts (IIRC) based on the DPI settings it gets from X. gnome2.2 allows you to set those settings so maybe those are affecting mozilla judging how to render the fonts. xdpyinfo | grep resolution this will tell you what sort of DPI settings you're running X. then try and modify gnome2.2 in your gnome-font-properties to a similar DPI and see if it helps. mozilla also has a way to set the default DPI in its config files, can't remember what it is though.
you seem to be the only one with the problem here, i don't consider that major, sorry.
Alastair, you were right. Gnome's font settings were set to 96, but actual dpi was 78x81. I set my gnome dpi at 79, and now mozilla's fonts are fine. I wonder if gnome 2.4 will automatically grab the font dpi from xfree 4.3, since both will use xft 2? ps: not everybody believes that the current state of the gtk2 port of mozilla is ready for production use.
great. closing this bug now. as a final comment, many people are using gtk2 mozilla fine, but for myself, i'm using gtk1 mozilla only because i like galeon-1.2x series better than 1.3x, and 1.2x depends on gtk1 mozilla.