Re: [fltk.development] FL_BOLD,FL_ITALIC Xft font sorting

2012-10-03 Thread chris
But I think it can be used only with Fl::set_font() afterwards. OK, but is that a bad thing necessarily? Of course not generally, but it may not always be possible or useful in a certain context. For example if you are in the draw method of a string with escape codes like Fl_Browser has, and

Re: [fltk.development] FL_BOLD,FL_ITALIC Xft font sorting

2012-10-03 Thread MacArthur, Ian (SELEX GALILEO, UK)
But I think it can be used only with Fl::set_font() afterwards. OK, but is that a bad thing necessarily? Of course not generally, but it may not always be possible or useful in a certain context. For example if you are in the draw method of a string with escape codes like

Re: [fltk.development] FL_BOLD,FL_ITALIC Xft font sorting

2012-10-02 Thread MacArthur, Ian (SELEX GALILEO, UK)
There is some code in FLTK e.g. in the browser widget, that uses the method of OR'ing the constants FL_BOLD, FL_ITALIC,.. to the current Fl_Font (which is just an index into the font table) to get the font index of the bold, italic,.. font of the current font family. In Enumerations.H the