It is common that the default font set in GTK+ 2 doesn’t suit our needs, which causes all the programs using it to look not as we would like them to. Yet, the method to change the default font is simple.
Just add the following line to the
gtkrc file of the theme you are using1 (it should be somewhere in
/usr/share/themes, but it may depend on the distribution):
In the above example I set a size 9 Sans font as the default font. You may of course enter any correct font definition instead.
If you’re not using any theme, create a new
gtkrcfile, enter the described line in it and set the
GTK2_RC_FILESenvironmental variable to the path to the created file. ↩