home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!sgigate!odin!mips!sdd.hp.com!hpscdc!hplextra!hpcc05!hpunila!hpfcse!hpfcmgw!chan
- From: chan@hpfcmgw.FC.HP.COM (Chan Benson)
- Newsgroups: comp.sys.hp
- Subject: Re: Xlib bugs in HP-UX 8.07
- Message-ID: <17780229@hpfcmgw.FC.HP.COM>
- Date: 12 Aug 92 16:41:50 GMT
- References: <85922@netnews.upenn.edu>
- Organization: HP Fort Collins, CO
- Lines: 46
-
- > I have two specific complaints about Xlib functions under HP-UX 8.07.
- >
- > 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?
-
- Make sure you do a "mkfontdir" in the directory you're trying to add
- to the font path.
-
- > 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" );
- ...
- > 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.
-
- From the Xlib Manual, Chapter 10, Verse 2:
-
- "Defaults are usually loaded into the RESOURCE_MANAGER property on the
- root window at login. If no such property exists, a resource file in
- the user's home directory is loaded. On a POSIX system, this file is
- $HOME/.Xdefaults."
-
- In your case, XGetDefault is returning values from the RESOURCE_MANAGER
- property. See xrdb(1x) for more details.
-
- > Xlib is the lowest level of what's supposed to be the ultimate
- > portable window system. It's very disappointing to discover that even
- > basic functions like these have bugs.
-
- If X is the "ultimate" in anything, it's in providing job security for
- those who've spent years learning its complexities. I suspect that the
- real source of your disappointment is the documentation.
-
- -- Chan Benson
- HP Fort Collins
-