James Clarke & Notes

Fixing large fonts in GTK applications

Information on how to fix the problem of large fonts being used for GTK+ applications within KDE by making applications use Bitstream Vera fonts.

I find it annoying that there are so many issues with font configuration within linux. Today I fixed the problem of large fonts being used for GTK+ applications within KDE. I am using the Bitstream Vera fonts from Gnome as my default font in KDE. The fix involved creating and editing both my ~/.gtkrc and ~/.gtkrc-2.0 files.

.gtkrc looks as follows:

style "user-font" {
font="-bitstream-bitstream vera sans-medium-r-normal---80---p--iso8859-15"
}
widget_class "" style "user-font"
And .gtkrc-2.0:
style "user-font" {
    font_name = "Bitstream Vera Sans 8"
}
widget_class "*" style "user-font"
All applications should now be using Bitstream Vera Sans 8 for menus etc.