Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19410 - Mozilla should use XSettings font name when gtk2 is enabled
Summary: Mozilla should use XSettings font name when gtk2 is enabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-16 05:07 UTC by leon j. breedt
Modified: 2004-03-20 07:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to mozilla-1.3-r1 ebuild for XSettings font support (mozilla-1.3r1-font-ebuild.patch,7.05 KB, patch)
2003-04-16 05:08 UTC, leon j. breedt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description leon j. breedt 2003-04-16 05:07:04 UTC
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:
Comment 1 leon j. breedt 2003-04-16 05:08:10 UTC
Created attachment 10725 [details, diff]
Patch to mozilla-1.3-r1 ebuild for XSettings font support
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-21 15:59:37 UTC
Please post a URL where this originate from.
Comment 3 leon j. breedt 2003-04-21 16:34:28 UTC
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.
Comment 4 Aron Griffis (RETIRED) gentoo-dev 2004-03-20 07:06:50 UTC
I've just checked, current mozilla and firefox now support this behavior by default.