On 14 Oct 2011, at 22:54, David wrote:
> Doesn't look like there is a way to set a global default font, size, etc.
Actually, there is a global font setting, it is set to size 14 in Fl_Widget.cxx
, but is in global scope so can be over ridden at runtime...
Do something like...
extern Fl_Fontsize FL_NORMAL_SIZE;
:
:
FL_NORMAL_SIZE = <some value other than 14>
<create widgets...>
And yes, FL_NORMAL_SIZE does not look like a variable name, but actually it
is...
Similarly, all widgets are assigned the face FL_HELVETICA by default, but you
can, if you so wish, simply change the font that is associated with that name,
before you create your widgets, and they will "acquire" the desired face.
Or you can explicitly set the size/face per widget, of course, if you want to
go that way.
> If that's true, I can change that so that either Fl or Fl_Widget has some
> static variables holding app wide defaults and use those in Fl_Widgets
> constructor. Otherwise, every time someone needs a different font type/style
> than the default (which I have a need for), every single widget has to have
> it set(lots of extra unneeded code).
What is it that you are trying to do? You've posted a fair number of queries
and suggestions recently, many proposing changes that appear to be "already
solved" in other ways, so I'm wondering what it is that you are trying to
achieve that requires so much change?
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk