Ten days ago, a new version of FLTK was released - version 1.3.0:

http://fltk.org/articles.php?L1086

I downloaded that and got it to run. However, there is no text displayed in the 
demos. I got the following messages to STDERR:

XSetLocaleModifiers called
XSetErrorHandler called
nxlib: display bpp 16, bits_per_rgb 6
XOpenIM called
XOpenIM() failed
XGetDefault Text background
XGetDefault fltk foreground
XGetDefault fltk background
XGetDefault Text selectBackground
XGetDefault fltk dndTextOps
XGetDefault fltk tooltips
XGetDefault fltk visibleFocus
XGetDefault fltk scheme
nxTranslateEventMask no handler for event mask (0022c07f): 14 
findfont_nowild: fail

With the old versions the system font was used. The code is:

Fl_Box *box = new Fl_Box(20,40,300,100,"Hello, World!");
box->box(FL_UP_BOX);
box->labelfont(FL_BOLD+FL_ITALIC);
box->labelsize(36);
box->labeltype(FL_SHADOW_LABEL);
window->end();

That resulted in the following messages:

XSetErrorHandler called
nxlib: display bpp 16, bits_per_rgb 6
XGetDefault Text background
XGetDefault fltk foreground
XGetDefault fltk background
XGetDefault Text selectBackground
XGetDefault fltk dndTextOps
XGetDefault fltk tooltips
XGetDefault fltk visibleFocus
XGetDefault fltk scheme
nxTranslateEventMask no handler for event mask (0022c07f): 14 
findfont: START fixed 0,0
findfont_nowild: fail
findfont: FINI nowild fixed = (null) height 32
findfont: START 6x13 0,0
findfont_nowild: fail
findfont: FINI nowild 6x13 = (null) height 32
XLoadFont('fixed') = '(null)' height 32 [0]

So I did not get a 36 font but the fixed font. Do you have any suggestions how 
to get a font to work?

Regards

Georg

Reply via email to