Ah - I maybe was off-base on what the OP was asking, so I probably answered the
wrong question.
> This really is an important feature. You can't honestly expect everyone to
> call textfont(), textsize(), labelfont(), labelsize() for every single widget
> in a nontrivial program. As far as I can tell (and I'm probably wrong), label
> size is hardcoded in Fl_Widget.cxx
>
> line 79: int FL_NORMAL_SIZE = 14;
>
> line 89: label_.font = FL_HELVETICA;
> line 90: label_.size = (uchar)FL_NORMAL_SIZE;
>
> It would be really neat if this FL_NORMAL_SIZE was a static attribute of
> Fl_Widget, rather than a local variable, and if there was a method to get/set
> its value.
Well... if the OP wants to globally change the default font size - which in
re-reading seems to be the case - then FL_NORMAL_SIZE is the "answer"... It has
global scope, IIRC, so all you need do is, in your main, before any widgets are
created, put:
extern int FL_NORMAL_SIZE;
then...
FL_NORMAL_SIZE = <something>;
And that ought to do the trick. Possibly!
Any good?
--
Ian
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk