> > Which font engine are you compiling in? Is it XFT or Xlib based? > > If XFT, you'd get better mileage using the font names rather than the > XLFD you've used - so I assume you are using Xlib fonts? > > I'm not sure what would cause the delay - it is possible that the font > engine already has the Courier font active (and it will likely be much > smaller and faster to load anyway) so what you are seeing is a delay > whilst the font engine enumerates the font for use. If so, there's > probably nothing we can do in fltk to speed that up... > > Where are your fonts served from? If they are served over the network > (rather than served locally to the machine) that will also slow things > down a lot. > > Other than that, not sure what to suggest - I use XFT on X11 all the > time now and have never seen any noticeable slowness, so I'm not sure > what else to suggest at this point. > Thank you for your answer . My font engine is Xlib based and my font served locally, I am by looking at the Xlib code and found that the problem lies in the function call _XWaitForReadable(XlibInit.c).it take a long time when calling select() function. the larger the font file size,the slower the speed.Is it really a font engine problems?
_______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

