> But I found a problem when I initialized unicode fonts. I am > by looking at the code and found that the problem lies in the > function call XLoadQueryFont.it take a long time when > calling XLoadQueryFont(utf8Wrap.c) function. > > Here is my code:when I use zysong18030,it is very slow.when I > use iso8859,it is fast. > envirenment: > tinyx: X11R6 4.2 > fltk: fltk1.3.0 > compiler:powerpc-603e-linux-gcc > cpu: Media 5200
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. SELEX Galileo Ltd Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

