[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Finally figured it out (was: Default fonts for applications?)



Lloyd Zusman <ljz@asfast.com> writes:

>
> [ ... ]
>
> Files:   $HOME/.gtkrc-kde
>          /usr/share/gnome/gtkrc
>          /usr/share/themes/Default/gtk-2.0-key/gtkrc
>          /usr/share/themes/Default/gtk-2.0/gtkrc
>          /usr/share/themes/Default/gtk/gtkrc
>          /etc/gtk/gtkrc.en
>
> Statements:
>
>   style "default-text" {
>          fontset = "-misc-fixed-bold-r-*-*-*-100-*-*-*-*-iso8859-*"
>   }
>
>   class "GtkWidget" style "default-text"
>
>   class "*" style "default"
>
>
> What am I missing here?

Well, I finally figured it out:

1.  $HOME/.gtkrc-kde gets overwritten every time I log in,
    so my changes disappeared before they could take effect.

2.  I noticed the following environment variable setting:

      GTK_RC_FILES=/etc/gtk/gtkrc:/home/ljz/.gtkrc:/home/ljz/.gtkrc-kde

    So, I created a $HOME/.gtkrc that contained the "style" and "class"
    statements.  That file doesn't get overwritten.

3.  The last "class" line should have been this:

      class "*" style "default-text"

    (I had accidentally typed "default").

Based on these insights, I was able to get the fonts I desire in
mozilla, gqview, and lots of other apps.

Thanks again to you folks who pointed out that mozilla uses gtk after
all, which got me back on the right track.

And now ... is any of this documented anywhere?  If so, where?

-- 
 Lloyd Zusman
 ljz@asfast.com



Reply to: