On 03.02.2012 20:21, testalucida wrote:

> It works as you say, but I still can't understand why this doesn't work:
> textfont( FL_HELVETICA_BOLD );
> textsize( 12 );
> (instead of fl_font(textfont(), textsize()); )

... as Greg said ...

> And why does it work when adding a dummy Fl_Output first?

Because the first (dummy) Fl_Output's draw() method sets the
current font when *it* is called, and because it is not reset
after draw() the font is still set when the 2nd Fl_Output's
draw() method is called. That's kinda surprising, but that's
what the F and L in FLTK mean: Fast and Light, don't do anything
that is not necessary.

Albrecht
_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to