[comp.windows.open-look] A possible OLIT faq, and req for OLIT documentation...

biggers@wolves.uucp (Mark Biggers) (06/02/91)

Hello,

It appears that Openwindows 2.0 OLIT widgets have trouble running
under the X11R4 server, at least as far as finding fonts is concerned
(BTW, I'm also looking for other OLIT docs, beside the M&T book by
J.D. Miller).

My setup:

* Sun 4/110, SunOS 4.1, M.I.T. X11R4 patchlevel 18

* Openwindows 2.0 distribution in /home/openwin, including OLIT widget
  set library

With either the sample menu code in
/home/openwin/share/src/sun/olit/examples built and run, or the
/home/openwin/demo/olit/sampler application started, I get the
following error(s):

mvc:/home/openwin/demo/olit % sampler
ld.so: warning: /usr/lib/libX11.so.4.2 has older revision than expected 3
Warning: Shell Widget class BaseWindowShell binary compiled for R3
OPEN LOOK Toolkit Error in application "sampler":  Could not find
default OPEN LOOK button font:
                Resolution: d     Point Size: 12

mvc:/home/u1/biggers/src % menu
Warning: Shell Widget class BaseWindowShell binary compiled for R3
OPEN LOOK Toolkit Error in application "menu":  Could not find default
OPEN LOOK  button font:
                Resolution: d     Point Size: 12


Okay, what's an old X hack to do?  Well having the X11R4 source handy,
I linked mit/lib/X/XFont.c (built by me) *before* the Xlib library, so
I could dbx-breakpoint in XLoadQueryFont and find out which font(s)
were missing, and found these font names:

h12butto
h12lucid

Okay (groan) so I go to /home/openwin/lib/fonts and use Sun's
"convertfont" utility to make "bdf" versions of these fonts.  I
compile them with "bdftosnf", move the "snf" versions to
/usr/lib/X11/fonts/75dpi, do the appropriate "mkfontdir .", add the
following aliases to "fonts.alias":

h12lucid h12lucid-12
h12butto h12butto-12

and then do "xset fp rehash".

And STILL, Ring Around the Collar (er, same font load error).  Come on
guys, OW 2.0 XView apps, and XView apps I've built myself from the OW
2.0 libs, run fine under X11R4 PL18.  What's My Problem Here?  And
don't tell me to run the X/NeWS server, no thanks (both apps work fine
under X/NeWS a.k.a. OW 2.0).

Frustrated in NC,
--mark

-- 
Mark Biggers
Internet: biggers%wolves@cs.duke.edu
Usenet:   ...!mcnc!wolves!biggers (mcnc.org)
<standard disclaimers apply>