> > No you don't - I mean, you can if you want, but it's not what I do. > Before you create the widgets, just call: > > fl_font(FL_HELVETICA, FL_NORMAL_SIZE); >
But I shouldn't have to know what font would be used by the Fl_Widget that is going to be created. I don't know what's being used, what if someone changes it to be FL_DEFAULT_FONT or FL_SYSTEM_FONT, etc.. I just want to ask a the widget what size this label will be printed as if I create the widget and pass the label without setting any font or font size. This way I can calc my widget size prior to creating the widget for certain types of widget (text mainly, maybe buttons). _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
