So, I would like to use italic and bold text in a fl_texteditor, but have some, not all text having said states (bold, italic) applied. Is that at all possible with current fltk, or do I need to - somehow - inherit from fl_texteditor and change something?
So since it was being asked, here’s a very cut down version of the editor demo that just updates the style buffer. Continuously... It’s of no actual use, but might illustrate how the style buffer can be used for setting font faces / style / etc.
Note that you can change the FL_COURIER references to other fonts/styles to access Bold and Italic features.
A similar resource that comes with fltk 1.4.x is the examples/textdisplay-with-colors.cxxwhich is a fairly concise bit of code: