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