Red Hat Bugzilla – Bug 122703
gnome-font-properties not working properly for gtk apps run in kde
Last modified: 2007-11-30 17:10:42 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Description of problem:
I use kde as my desktop, but I still run various gtk-based
applications -- not least, the system-config-* tools. I wanted the
font in the gtk apps to be the same as my kde font, so I used
gnome-font-properties to set it. However, this doesn't seem to "stick"
under kde; every time I start kde, apps come up with too-big fonts
until I run gnome-font-properties again explicitly.
Note that gnome-font-properties comes up with the proper defaults
selected, but before I run it, all my gtk apps have what looks like
the correct font, just too big. I'll attach screenshots.
Also, if I choose gnome as my desktop environment, the font is
correct; it's just when I log in using kde and run gtk apps that the
font starts out too big.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Use gnome-font-properties to choose Bitstream Vera Sans 8
2. Log out
3. Log in using kde
4. Start a gtk app (e.g., system-config-network)
5. The font looks like Bitstream Vera Sans 9 or 10 (see before.png)
6. Run gnome-font-properties -- don't change anything, just run it
(it comes up with the correct defaults selected) and close it
7. Run system-config-network again; now the font is the correct
8-point size (after.png)
Actual Results: The font isn't the right size until I've run
Expected Results: The font should be the right size!
Created attachment 100065 [details]
Screenshot of system-config-network before running gnome-font-properties
Created attachment 100066 [details]
Screenshot of system-config-network after running gnome-font-properties
Okay, never mind; I looked into this a bit more and it looks like I
need to run gnome-settings-daemon as part of my X startup in KDE,
and then the settings will propagate to any GTK apps I start up. I
guess a side effect of running gnome-font-properties in my above
procedure was that *it* started gnome-settings-daemon, which then
made other stuff work properly.
Would be nice if this would happen automatically ...
I can not see why this is not a bug in the default distribution. I
think this should really be fixed someday.
I can confirm this behaviour for final Core 2 and Core 3. I would
highly encourage to reopen this bug.
Created attachment 110189 [details]
gnome starter script to initialize the fonts within kde
This little script starts and kills gnome-font-properties to initialize the
fonts for gtk applications. Put this in ~/.kde/Autostart if you like.