home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / hp / 9381 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  2.1 KB

  1. Path: sparky!uunet!cs.utexas.edu!swrinde!mips!sdd.hp.com!hpscdc!hplextra!hpfcso!stroyan
  2. From: stroyan@hpfcso.FC.HP.COM (Mike Stroyan)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: Xlib bugs in HP-UX 8.07
  5. Message-ID: <7371233@hpfcso.FC.HP.COM>
  6. Date: 18 Aug 92 00:20:03 GMT
  7. References: <85922@netnews.upenn.edu>
  8. Organization: Hewlett-Packard, Fort Collins, CO, USA
  9. Lines: 39
  10.  
  11. > 1.  For the life of me, I cannot figure out how to add a new font
  12. > directory to a server's font path using XSetFontPath() (or
  13. > equivalently, 'xset +fp' or 'xset fp+').  I wrote a small C program
  14. > that calls XSetFontPath() but it keeps giving me BadValue errors.  It
  15. > is possible to "add" font directories that are already in the path
  16. > (they will appear twice in the path), but adding a new directory
  17. > simply doesn't work, no matter where that directory actually is.  Does
  18. > anybody else have this problem, or am I losing my mind?
  19.  
  20. You have to run mkfontdir in any new font directory.  See the manual page
  21. for 'mkfontdir'.
  22.  
  23. > 2.  Here's a simple Xlib program called xlib-test.c:
  24. > --------------------------------------------------------
  25. >   fg = XGetDefault( disp, argv[0], "foreground" );
  26. >   bg = XGetDefault( disp, argv[0], "background" );
  27. >   rnd = XGetDefault( disp, argv[0], "random" );
  28.  
  29. > And here's its output on an HP9000/710:
  30. > hp710 /disk/plaid/freeman [ 4 ] xlib-test
  31. > fg is #FFFFFFFFFFFF
  32. > bg is #7848A075D500
  33. > rnd is null.
  34. > hp710 /disk/plaid/freeman [ 5 ] 
  35. > I have no .Xdefaults file in my home directory, and my XENVIRONMENT
  36. > variable is not set, so all three calls to XGetDefault() should have
  37. > returned null.  I get the same results no matter what the name of the
  38. > program is.
  39.  
  40. The resources are probably set with xrdb.  Run "xrdb -query" to see the
  41. values of resources set in the root window's "RESOURCE_MANAGER" property.
  42. Refer to the manual page for 'xrdb'.  HP-VUE saves and restores the xrdb
  43. data along with the rest of the session information.  The xrdb mechanism
  44. is better for remote clients because it avoids duplicating .Xdefaults
  45. files on every machine.
  46.  
  47. Mike Stroyan, mike_stroyan@fc.hp.com
  48.