Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GTK 1 fontsize under RedHat 8

Status
Not open for further replies.

Nalyd

Technical User
Mar 16, 2002
16
0
0
US
How can I change the GTK 1 default font and size that is used by Evolution and other GTK 1 apps?

Thanks, Dylan.
 
You can edit (or create) the file named ".gtkrc" in your $HOME directory.

The file format is something similar to a HTML stylesheet, but it can get fairly complex.

The basic syntax is something like this:
[tt]
# DEFINE A NAMED STYLE
style "MyMenu"
{
font = [/tt]"-adobe-helvetica-medium-*-normal-*-18-*-*-*-p-*-iso8859-1"[tt]
bg_pixmap[NORMAL] = &quot;<none>&quot;
bg_pixmap[ACTIVE] = &quot;<none>&quot;
bg_pixmap[INSENSITIVE] = &quot;<none>&quot;
bg_pixmap[PRELIGHT] = &quot;<none>&quot;
fg[NORMAL] = &quot;#ffffff&quot;
text[NORMAL] = &quot;#ffffff&quot;
text[INSENSITIVE] = &quot;#ffffff&quot;
fg[INSENSITIVE] = &quot;#000000&quot;
fg[ACTIVE] = &quot;#ffffff&quot;
text[ACTIVE] = &quot;#ffffff&quot;
fg[PRELIGHT] = &quot;#ffffff&quot;
text[PRELIGHT] = &quot;#ffffff&quot;
fg[SELECTED] = &quot;#000000&quot;
text[SELECTED] = &quot;#000000&quot;
bg[NORMAL] = &quot;#5F7EAB&quot;
base[NORMAL] = &quot;#FFFFFF&quot;
bg[ACTIVE] = &quot;#587296&quot;
base[ACTIVE] = &quot;#E5E5E5&quot;
bg[PRELIGHT] = &quot;#5F7EAB&quot;
base[PRELIGHT] = &quot;#FFFFFF&quot;
bg[SELECTED] = &quot;#A0FEEB&quot;
bg[INSENSITIVE] = &quot;#5F7EAB&quot;
base[INSENSITIVE] = &quot;#5F7EAB&quot;
engine &quot;gtk&quot; {}
}


# ( MORE STYLES HERE ... )


# SPECIFY THE WIDGET CLASS THAT THE STYLE APPLIES TO....
widget_class &quot;*Menu*&quot; style &quot;MyMenu&quot;

# ( MORE WIDGETS HERE ... )
[/tt]
Note the wildcards around [tt]&quot;*Menu*&quot;[/tt] in the widget class -
It will match any widget with a classname of Menu, SubMenu, MenuThing, etc....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top