PDA

View Full Version : [all variants] Setting font pixelsize in GTK+/2 RC .gtkrc-2.0



os2
May 9th, 2017, 12:07 PM
Does anyone know the option to set the font pixelsize (as opposed to size) for GTK apps?

.gtkrc-2.0 does this by default:



gtk-font-name="Sans 10"


But the value 10 defaults to font size.

os2
May 9th, 2017, 12:23 PM
The answer is it doesn't exist. No option:

https://developer.gnome.org/gtk3/stable/GtkSettings.html#GtkSettings--gtk-font-name

GTK makes things more difficult than they already are.