I know how to set font for GTK+3 programs from the command-line, namely by editing the right-hand side (RHS) of ~/.config/gtk-3.0/settings.ini's font line:

gtk-font-name=Font Awesome 5 Free Regular

likewise to set the GTK+ 3 font I'd edit the RHS of:


(these lines are taken from my settings.ini file) but I do not know how to do so for GTK+ 2 programs.


Quoting the Arch wiki:

To manually change the GTK+ theme, icons, font and font size, add the following to the configuration files, for example:


gtk-icon-theme-name = "Adwaita"
gtk-theme-name = "Adwaita"
gtk-font-name = "DejaVu Sans 11"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.