Followup to http://www.fltk.org/newsgroups.php?gfltk.general+v:31418
I wrote: >> So I've incorporated the fl_draw() call in an old example that I >> posted several years ago. Basically I want something simple like: >> >> char buffer[32]; >> sprintf(buffer, "%d", value); >> fl_draw(buffer, x() + 30, y() + 30); Greg replied: > Don't forget to set the font ;) eg. fl_font(). > FLTK will crash if the font isn't set before the fl_draw() call. Is there some reason why this is acceptable behaviour and not an STR? You don't need to call fl_font() before setting titles and labels, so why is it needed before fl_draw()? Can't the same font be used? Just thinking aloud... D. _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
