Change the default GTK2 font?

Alexander Zhuravlev zaa at zaa.pp.ru
Sun Sep 30 22:55:10 PDT 2007


On Mon, Oct 01, 2007 at 03:26:30PM +1000, Edwin Groothuis wrote:
> Hello,
> 
> With the upgrade to xorg 7.3 suddenly the default font for GTK2x
> applications has moved from a nice small one to a huge one which
> gives me about 50% of the text I normally get on my screen.
> 
> XTerms themselves still have the right size.
> 
> How and where can I define which font GTK2x applications should use
> as their default ones?

You can use something like this

% cat ~/.gtkrc-2.0

style "user-font" { 
        font_name="Verdana 8" 
} 

widget_class "*" style "user-font" 
gtk-font-name="Verdana 8"



More information about the freebsd-ports mailing list