home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sun / misc / 4182 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  1.8 KB

  1. Path: sparky!uunet!mcsun!sunic!dkuug!diku!thorinn
  2. From: thorinn@diku.dk (Lars Henrik Mathiesen)
  3. Newsgroups: comp.sys.sun.misc
  4. Subject: Re: A few OpenLook questions ...
  5. Keywords: openlook, resources, lame
  6. Message-ID: <1992Sep9.182917.17342@odin.diku.dk>
  7. Date: 9 Sep 92 18:29:17 GMT
  8. References: <BtHCzJ.LF@micromuse.co.uk> <1992Aug25.114410.8413@cas.org> <23125@sybase.sybase.com> <14496@auspex-gw.auspex.com>
  9. Sender: thorinn@tyr.diku.dk
  10. Organization: Department of Computer Science, U of Copenhagen
  11. Lines: 29
  12.  
  13. guy@Auspex.COM (Guy Harris) writes:
  14. >somebody else (whom Guy didn't identify) writes
  15. >>The other shortcoming is the NeWS server's
  16. >>problems with font specifications like -*-fixed-medium-r-normal-*-14-*-
  17.  
  18. >What problems are those?
  19.  
  20. The first problem is that the pattern includes a trailing dash, and
  21. the font names do not.
  22.  
  23. >>and the requirement that ALL dashes be included.
  24.  
  25. >Do other X11 servers not require that all dashes be included?
  26.  
  27. Not all of them. Some seem to use a shell style glob routine (without
  28. character ranges, though). However, because of the recursion that is
  29. often used for '*', patterns like '-*-*-*-*-*-*-12-*-*-*-m-*-*-*' can
  30. use a fair amount of CPU time to fail on most of the fonts---on a
  31. VAXStation 2000 with 474 full font names in the font path, it takes
  32. half a second to find the six that do match. And since it is the
  33. server that does the globbing, everything freezes while an application
  34. with ten or twenty font specifications like that is starting up.
  35.  
  36. If the NeWS server uses another method, it is possibly because the
  37. shell glob was seen to take so long. It _is_ possible to do shell
  38. globbing without using time exponential in the number of '*'s, but
  39. people are not usually aware of that.
  40.  
  41. Lars Mathiesen (U of Copenhagen CS Dep) <thorinn@diku.dk> (Humour NOT marked)
  42.