Path: utzoo!censor!geac!torsqnt!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ames!amdcad!sun!kimba!hvr From: hvr@kimba.Sun.COM (Heather Rose) Newsgroups: comp.windows.x Subject: Re: XView application without olcursor? Message-ID: <132555@sun.Eng.Sun.COM> Date: 6 Mar 90 02:45:55 GMT References: <5452@crdgw1.crd.ge.com> Sender: news@sun.Eng.Sun.COM Reply-To: hvr@sun.UUCP (Heather Rose) Organization: Sun Microsystems, Mountain View Lines: 28 In article <5452@crdgw1.crd.ge.com> barnett@grymoire.crd.ge.com (Bruce Barnett) writes: >I am trying to write an XView application that is very tolerant >of multiple environments. > >However, when I run this application on an >X terminal without the OpenLook cursor "olcursor" installed, the program >terminates with an error. xset [-display display] +fp $XVIEWHOME/lib/X11/fonts/xview/misc does not add the open look fonts to your X11 server? All X11R4 compatible servers should have these loaded in the default locations... >I would like to know if there is any way to prevent a fatal error >in XView if the cursors aren't there. (I believe I have programmed >around the case when the default font is missing). I imagine you might be able to get it to work, but you'll need to create bitmaps from each font object first. The xv_set() command for the cursor can take an X11 bitmap as the object. We'll have to look into building that into the library. the xv_find command can be used to determine whether or not a font is available. The O'Reilly book has an example for the case of fonts. Regards, Heather