brett s hallett
2006-Jan-23 01:13 UTC
[fxruby-users] setting default FONT for buttons . etc
I have just upgraded to FXRuby & FOX 1.4 ''x'' and discover that when I reload my programs using ''fox14'' ( was ''fox12'') the displayed FONT is not as it was. ie: very thin and washed out. Can anybody direct me to how I can set the default font ? Indeed can I set this in FXRuby or Fox, or is it better to set it in my pograms ? -- Yours, Brett
On Jan 22, 2006, at 7:13 PM, brett s hallett wrote:> I have just upgraded to FXRuby & FOX 1.4 ''x'' and discover that when I > reload my programs using ''fox14'' ( was ''fox12'') the displayed FONT is > not as it was. ie: very thin and washed out. > > Can anybody direct me to how I can set the default font ?Just set it before you start constructing any widgets and that should do the trick, e.g. app = FXApp.new(...) app.normalFont = FXFont.new(app, ...) MainWindow.new(app, ...) app.create app.run Hope this helps, Lyle