[comp.windows.open-look] XView font problem

hari@matrix.UUCP (T hariharan) (02/14/91)

Hi,

We recently ported an application to XView. We tried to run it on
Sparcstation A and display on Sparcstation B. Sparcstation B was running
the MIT X server (V11R3, built with sources off the MIT distribution tape).

The application quit after the following 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 '-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 #24
  Current Serial #28

Major code 94 corresponds to the "CreateGlyphCursor" request. It looks like
XView keeps going even though it couldn't find the cursor font and passes
a bad font to the X server.

The same thing happens when you try to run "cmdtool" or other programs
that come with Sun's OpenWindows. 

I'm sure many of you out there have run into this problem.
Is there any workaround ?
Is is possible to override the default fonts in your XView application ?

Please mail your replies to me.  I'll summarize.

Thanks in advance,
Hari

uunet!matrix!hari
Matrix Computer Systems, Inc.
7 1/2 Harris Rd.
Nashua   NH   03062
(603) 888-7790

hari@matrix.UUCP (T hariharan) (02/20/91)

I recently posted the following article. Many thanks to those who replied.

First, here is a copy of the original message:

====================================================================
Hi,

We recently ported an application to XView. We tried to run it on
Sparcstation A and display on Sparcstation B. Sparcstation B was running
the MIT X server (V11R3, built with sources off the MIT distribution tape).

The application quit after the following 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 '-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 #24
  Current Serial #28

Major code 94 corresponds to the "CreateGlyphCursor" request. It looks like
XView keeps going even though it couldn't find the cursor font and passes
a bad font to the X server.

The same thing happens when you try to run "cmdtool" or other programs
that come with Sun's OpenWindows.

I'm sure many of you out there have run into this problem.
Is there any workaround ?
Is is possible to override the default fonts in your XView application ?

Please mail your replies to me.  I'll summarize.
======================================================================

Here are the replies I got:

>>> These fonts are all part of the standard distribution with the MIT X11R4
>>> server, so one way (and highly recommended), is to upgrade to X11R4.
>>> 
>>> The server should substitute any of the "ascii" fonts that aren't
>>> present, i.e. the Lucidas, but the glyph and cursor fonts are mandatory
>>> since they are unique and not alphabetic-style fonts.  You may be able
>>> ftp these from expo separately, but I'm not sure.  Someone from your
>>> local Sun sales office should also be able to cut you a tape of these
>>> fonts as well.
>>> 
>>> Susan Bickford
>>> Sun Microsystems
>>> Systems Engineer - NorthEast Area
>>> susan.bickford@East.sun.com

==> I've seen the name messages while using xview-aplication with X11R3.
==> 
==> You may allways try to change to font, but the fact is that sooner or later
==> you will run to a problem that cannot be solved without X11R4.
==> 
==> So, I suggest that you change to release 4.

We obtained an X11R4 tape and built the server. The XView applications work
fine now. All the fonts that OPEN LOOK needs (text, cursor, and glyph fonts)
are automatically installed on the server in X11V4.

Hari

uunet!matrix!hari
Matrix Computer Systems, Inc.
7 1/2 Harris Road
Nashua  NH  03062
(603)888-7790