[comp.windows.x] Xview2 Open Look Intrinsics Toolkit font problem

andrew@megadata.mega.oz.au (Andrew McRae) (08/17/90)

This is on a Sparcstation running 4.0.3c.

Having just obtained our copy of Open Windows 2.0, I decided
to rebuild one of our applications using the OLIT (AT&T supplied
Open Look widget set). As an experiment (and also because we had
some different fonts) I decided to attempt to use this toolkit
with the MIT R4 Xt intrinsics and Xlib and the MIT R4 server - after
all, Sun says that it is all R4 compatible...

So I change my program to use OlInitialize instead of XtInitialize,
change the Athena widgets calls (Viewport and Form) to OL widgets
(ScrolledWindow and Form), recompile and link with -lXol. So I have
this application running OL widgets, linked with MIT R4 Xt and Xlib,
with MIT R4 server (I wanted to use the MIT server because I had
some custom fonts, and I don't have the Open Windows manuals to tell
me all the details about converting fonts).

When I run the application I get the following message (s):

  Warning: Shell Widget class BaseWindowShell binary compiled for R3
  X Error of failed request:  BadName (named color or font does not exist)
    Major opcode of failed request:  45 (X_OpenFont)
    Minor opcode of failed request:  0
    Resource id in failed request:  0x900002
    Serial number of failed request:  59
    Current serial number in output stream:  61

I can handle the warning; it looks like the widgets have been built
with X11 R3 headers. Whilst this may cause problems, I presume little
enough has changed to be too much of a problem.

It is obvious that some extra fonts (perhaps to do with the scroll bar) are
necessary.

I then created .snf files for all the OpenWindows fonts (using
convertfont -x and bdftosnf), and added the font path and
rehashed. Xlsfonts tells me they are all there. BTW Only one
font file didn't convert (circles.fb), which bdftosnf rejected the
SIZE 0 72 72 line - I changed the 0 to 1 and bdftosnf then accepted it.

So I now have all the OpenWindows fonts in my MIT R4 server font path. I
run my program again, and get the same message! In desperation I then
add this line to the server resources:

         *Font: fixed

But again no dice. Obviously the font it is not finding is hard coded.

What is happening here? Can someone who knows the AT&T widgets tell me?
Or perhaps someone from Sun tell me what is going on?

I haven't run this under the complete OpenWindows environment (mainly
because of the font problem), but then again I fail to see why
that should make a difference.

Thanks for the help in advance!

Andrew McRae			inet:	andrew@megadata.mega.oz.au
Megadata Pty Ltd,		uucp:	..!uunet!megadata.mega.oz.au!andrew
North Ryde  2113		Phone:	+61 2 805 0899
NSW    AUSTRALIA		Fax:	+61 2 887 4847