[comp.sys.sun] Xview fonts & non-Sun X servers

eric@cs.utexas.edu (Eric Hanchrow) (01/10/91)

I have noticed that it is difficult, if not impossible, to run many XView
applications and display them on X servers which are not Suns.  For
example, running $OPENWINHOME/bin/xview/clock with my DISPLAY set to a
DecStation 2100 (Ultirx 4.0), I get the following error messages:

XView warning: Cannot load font '-b&h-lucida-medium-r-normal-sans-*-120-*-*-*-*-*-*' (Font package)
XView warning: Loading default font 'fixed' instead (Font package)
XView warning: Cannot load font '-b&h-lucida-medium-r-normal-sans-*-100-*-*-*-*-*-*' (Font package)
XView warning: Cannot load font '-sun-open look cursor-*-*-*-*-*-*-*-*-*-*-*-*' (Font package)
XView warning: Unable to find OPEN LOOK cursor font (Cursor package)
XView warning: invalid object (not a pointer), xv_get
X Error:  BadFont
  Request Major code 94 ()
  Request Minor code 0
  ResourceID 0x0
  Error Serial #43
  Current Serial #74

We are porting our SunView programs to XView, and while they display just
fine on the Sun, they die with error messages similar to the above when we
try to display them on the DecStation, or an X terminal.  I don't know for
sure why these programs are dying, but it looks as if they can't get some
fonts from the X server, and so they simply terminate.

Do you know of somebody who could help us figure out how to ensure that
our programs can run on any X server, whether or not that server is a Sun?

Eric Hanchrow		sun.com!nosun!yamada-sun!eric

dawes@suphys.physics.su.oz.au (David Dawes) (01/11/91)

In article <1145@brchh104.bnr.ca> yamada-sun!eric@cs.utexas.edu (Eric Hanchrow) writes:
>I have noticed that it is difficult, if not impossible, to run many XView
>applications and display them on X servers which are not Suns.  For
>example, running $OPENWINHOME/bin/xview/clock with my DISPLAY set to a
>DecStation 2100 (Ultirx 4.0), I get the following error messages:
>
>XView warning: Cannot load font '-b&h-lucida-medium-r-normal-sans-*-120-*-*-*-*-*-*' (Font package)

[ other error messages deleted]

I have been trying to display the standard Xview applications on a non-Sun
X server, and have been having a few problems.  The X server I'm using is
a VaxStation 3100 (Ultrix 3.?, running X11r4 compiled from MIT's source).
I start X on the VaxStation, rlogin to a Sun, setenv DISPLAY to point to
the vaxstation, then start olwm.  This starts OK.  When I start up some of
the Xview tools using the olwm menus, I find that all produce the
following warning message (paraphrased):

Xview warning: Cannot set default modifier mapping (server)

I assume this means there is a problem setting up keyboard mapping on the
vaxstation X server.  Most of the tools run OK despite this, but both
textedit and filemgr cause the X server to crash when they are started.

I've tried all of the other tools, and they seem to be OK.  The only other
warning I've had was related to not being able to find Helvetica font when
starting printtool.  I can start the clock without the warnings described
by Eric though.

To see if the problem was related to using the standard MIT X11r4 server,
I tried using a Sun running the standard MIT server.  All the Xview tools
then ran perfectly without any warnings.

I'd be interested to hear from anyone who has had any success getting
Xview applications running on non-Sun X servers.

 David Dawes (dawes@suphys.physics.su.oz.au) DoD#210   | Phone: +612 692 2639
 School of Physics, University of Sydney, Australia    | Fax:   +612 660 2903