is it possible to set the default font for all elements in a GUI in the code? I know I can use .rootrc to set the default font. But I cannot tell every user of the GUI to change his .rootrc. Besides, settings in .rootrc will also affect other ROOT windows, for example, the TBrowser, which is not what I want.
If you don’t want to use the global font settings (via .rootrc), then you have to set the for each GUI element with their SetFont() method.
But note that if you have a stand-alone ROOT application, you can specify the font like this: