GNOME Bugzilla – Bug 102936
font = in ~/.gtkrc-2.0 does nothing.
Last modified: 2004-12-22 21:47:04 UTC
This contents: style "font14" { font = "-*-helvetica-bold-r-normal--14-*-*-*-*-*-iso10646-1" } widget_class "*" style "font14" does absolutely nothing, even though the documentation says it should, and xfd -fn '-*-helvetica-bold-r-normal--14-*-*-*-*-*-iso10646-1' shows the font OK. There is no message or warning. Changing font = ... to font_name = "helvetica bold 14" but since there seem to be no documentation about what a "Pango font name" is, it is kind of hard to get exactly what you want.
when the ~/.gtkrc-2.0 is being ignored, are you running in a gnome-session or running any gnome apps?
Sorry for not being clear. ~/.gtkrc-2.0 is not being ignored. If I put other stuff inside style "font14", for example bg[NORMAL] = red, it is applied as it should. It is only font = that is being ignored. I am not running any gnome processes, only fvwm.
Maybe the docs could be improved, but this is working as expected. GTK+ doesn't use XLFD's for fonts any more, so setting an XLFD is entirely useless. If you want to change your default font from your gtkrc, just do: gtk-font-name = "Helvetica 14"
Pango font names are explained in the Pango docs: http://developer.gnome.org/doc/API/2.0/pango/pango-Fonts.html#pango-font-description-from-string I think this information should a) be placed more prominently in the Pango docs b) be linked from relevant places of the GTK docs
Fixed on both branches.