> On 31 Jul 2007, at 16:31, Pasquale Fersini wrote:
> > Ok, but for font's size?
> > Under winXP the font appears too big...
>
> You possibly want to check the docs for the void fl_font(int face,
> int size); and fl_message_font(face, size); and see if that helps.

fl_font() is used before calling fl_draw() but it doesn't affect font 
properties inside other widgets. E.g. you can add fl_font(FL_HELVETICA,12) to 
your main() but nothing will happen. Also, fl_message_font() works for message 
labels, but message buttons are unaffected.

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.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to