Cannot change fonts for GTK2 apps

I have changed the UI font in the appearance preferences, but this only affected GTK 3 apps. GTK 2 apps still have the default font. How can I change the font for GTK2 apps?

That should work. Did you change “Application font” ?

Yes, I did. It still had no effect.