On 9 Jun 2010, at 18:40, newgen wrote:

> fl_font(font(1),8);

If you are setting a fixed value for the font (a 1 in this case) I  
don't understand why you don't just use the enumerated values - makes  
the code much more readable and maintainable.

I think 1 == FL_HELVETICA_BOLD, so your code would look like

     fl_font(FL_HELVETICA_BOLD, 8);

Though setting an 8-pixel height for your font seems pretty small -  
are you sure that's what you want?



_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to