gtk2 supports a mechanism called XSettings for naming the font to use for its widgets. this is used by GNOME 2.0 to set the Application font, which is what gtk2 applications under GNOME will use for general widgets. if Mozilla is using gtk2, it should default to using the Application font for its UI elements (menu, form buttons & text boxes), this makes it integrate quite nicely with the rest of the desktop. a screenshot of a patched 1.3-r1 Mozilla can be found at: http://neverborn.org/mozilla-1.3r1-uifont.png i will attach a patch to the mozilla-1.3-r1 ebuild which enables this behaviour. the patches are quite safe, i'm pretty sure that they won't cause any problem on gtk1 mozilla compiles, since its just a system preference check, and if the preference can't be found (i.e. gtk hasn't set it or something), nothing breaks, you'll just get the fonts you always had. if you're running Mozilla under GNOME 2.0, you won't need to do anything else to get the integration. since KDE doesn't have XSettings support yet though, you'll need to have GNOME 2.0 installed, configure the GNOME Application font to match your KDE "General" font, and run 'gnome-settings-daemon &' in your .xinitrc to get the same effect. i hope you're willing to apply :) Reproducible: Always Steps to Reproduce:
Created attachment 10725 [details, diff] Patch to mozilla-1.3-r1 ebuild for XSettings font support
Please post a URL where this originate from.
i found the patches in the Mozilla 1.3 SRPM: http://ftp.mozilla.org/pub/mozilla/releases/mozilla1.3/Red_Hat_8x_RPMS/gtk2/SRPMS/ i don't think the mozilla-1.2.1-xft-font-prefs.patch is necessary for this integration, just the uifont patch.
I've just checked, current mozilla and firefox now support this behavior by default.