Re: Problems with loading x fonts

New Message Reply Date view Thread view Subject view Author view

Rob Jenkins (robj++at++quid.csd.sgi.com)
Fri, 30 Jan 1998 07:25:51 -0800


Colin

The only problem I found like this went away with correct version+patch
install, do you have patch 1696 ?

If you're sure all is as describe in the FAQs about versions/OS/patches then
could you narrow the problem down to smallish test case we can look at ?

Cheers
Rob

On Jan 29, 8:46pm, Dr Colin Bridgewater wrote:
> Subject: Problems with loading x fonts
> Hi folks
>
> Just for fun I decided to try to port one of my old v 1.2 programs to
> 2.0 and see what the performance is like on my *brand new O2* (with
> correct pf_eoe and pf_dev now, thanks Rob J).
>
> Anyway, I make calls to pfGetSharedArena(), and pfuMakeRasterXFont()
> followed by pfuSetXFont(). All these are after the various calls to
> pfOpenPipeWin() which get the pipe and window set up correctly.
>
> The font is stored in shared memory from where it is is supposed to be
> accessed by a DRAW callback. As you may have guessed, this works fine in
> single process mode but goes horrible wrong when I force *any* of the
> multi-processing modes.
>
> Error message from pfuMakeRasterXFont() is:
>
> >
> > PF Warning / Resource:
> > pfuMakeXFontBitmaps - couldn't get 129 lists
> >
>
> Followed by a complaint from the DRAW callback whenever it tries to
> write something with that font:
>
> >
> > PF Notice:
> > pfuDrawString - bad font handle in pid blah
> >
>
> The application runs, but with no text on the screen.... Seems fair
> enough if the font hasn't been loaded. But then the GUI is okay.
>
> As an alternative to shared memory, I tried to load the font into a
> static structure in the DRAW callback. But that just core-dumped the
> first time I tried to use pfuSetXFont(). Didn't keep the error message,
> since SEGMENTATION VIOLATION didn't seem to be very helpful.
>
> This is probably a trivial question but I have been looking at it on and
> off for a couple of weeks now and it still puzzles me. No rush, I'm more
> curious than hassled.
>
> BTW, I never tried running the program in multi-process mode in it's
> IrisGL form, so I have no idea if my previous attempts worked properly
> either.
>
> Best wishes and vennlig hilsen fra Norges !
>
> Colin
> _______________________________________________________________________
> Dr Colin Bridgewater crccobr++at++nocrc.abb.no Marine Oil and Gas Dept
> ABB Teknologi AS, Bergerveien 12, PO Box 91, N-1361 BILLINGSTAD, Norway
> work tel: +47 66 84 35 36, fax: +47 66 84 43 90, home: +44 1189 671713
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-- End of excerpt from Dr Colin Bridgewater

-- 
________________________________________________________________
Rob Jenkins mailto:robj++at++sgi.com
Silicon Graphics, Mtn View, California, USA
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:39 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.