View previous topic :: View next topic |
Author |
Message |
zen_guerrilla Guru
Joined: 18 Apr 2002 Posts: 343 Location: Greece
|
Posted: Tue Sep 03, 2002 4:11 pm Post subject: How to change the font of gtk+ 2 apps w/o gnome2 |
|
|
Hello world,
I emerged some gtk+ 2 apps (xchat,teg,gimp-1.3) without gnome2 and I want to change the font they use. For gtk+ 1.2 apps I have a custom .gtkrc file to do that...
.:: zen ::. |
|
Back to top |
|
|
vers_iq Apprentice
Joined: 18 May 2002 Posts: 264
|
Posted: Tue Sep 03, 2002 5:14 pm Post subject: |
|
|
Modify the rc file, either in $HOME/.gtkrc or global /usr/share/themes/<theme-name>/gtk-2.0/gtkrc, the format is almost the same as gtk-1.X, see example below:
gtk-1.2.x
Code: | style "user-font"
{
font ="-microsoft-tahoma-medium-r-normal-*-11-*-*-*-p-*-*-*"
}
widget_class "*" style "user-font" |
gtk-2.0
Code: | style "user-font"
{
font_name ="tahoma 8"
}
widget_class "*" style "user-font" |
|
|
Back to top |
|
|
zen_guerrilla Guru
Joined: 18 Apr 2002 Posts: 343 Location: Greece
|
Posted: Tue Sep 03, 2002 10:06 pm Post subject: |
|
|
vers_iq wrote: | Modify the rc file, either in $HOME/.gtkrc or global /usr/share/themes/<theme-name>/gtk-2.0/gtkrc, the format is almost the same as gtk-1.X
|
I tried it, but didn't work, so I emerged control-center. Thanx anyway.
.:: zen ::. |
|
Back to top |
|
|
orochi Tux's lil' helper
Joined: 02 Aug 2002 Posts: 76
|
Posted: Wed Sep 04, 2002 12:11 am Post subject: |
|
|
u coulda tried the program gtk-theme-switch |
|
Back to top |
|
|
|