Re: loadXFont problem

New Message Reply Date view Thread view Subject view Author view

Chris Chuter (cchuter++at++yahoo.com)
Tue, 15 Dec 1998 01:13:25 +0000 (GMT)


---David RAPIDEL <diginext++at++imaginet.fr> wrote:
>
> Hi pfall
>
> I have a problem when trying to load font for a HUD. My code work well
> if I stay with one process (APPCULLDRAW), but If I try to split into
> tree process (APP_CULL_DRAW), I get the following error message :
>
> PF Fatal/Usage: loadXFont: Couldn't get 129 display
lists
>
> witch come from this fragment of code :
> void
> FL_INFO_LoadXFont(void)
> {
> Display *xdisplay;
> char fontName[]
> ="-*-courier-bold-r-normal--14-*-*-*-m-90-iso8859-1";
>
> /* get font from X Server */
> xdisplay = pfGetCurWSConnection();
>
> pState->fontInfo = XLoadQueryFont(xdisplay, fontName);
>
> if( pState->fontInfo == NULL){
> pfNotify(PFNFY_FATAL, PFNFY_USAGE, "loadXFont: Couldn't load X
> font\n");
> exit(1);
> }
> .....
> }
>

I'm not sure I've correctly interpreted your snippet of code (not sure
what pState is.), but we've had similar problems. Make sure you
allocate the base for the display lists out of shared memory as well
as the the XFontStruct pointer (fontInfo?). In multi-pipe mode, we had
to allocate specific display list base's and XFontStructs for each pipe.

hope this helps,
Chris

> Thank you for any help.
>
> --
>
> David RAPIDEL
> *---*---*---*---*---*---*---*---*---*---*
> DIGINEXT
> Le Tertia II - Pole d'activite des Milles
> 13851 Aix En Provence - France
> Tel : +33 0442975633 - Fax +33 0442975649
> *---*---*---*---*---*---*---*---*---*---*
>
>
>
>
=======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>

==
Chris Chuter
Software Engineer
Mojave Computer Graphics
cchuter++at++mail.io.com

_________________________________________________________
DO YOU YAHOO!?
Get your free ++at++yahoo.com address at http://mail.yahoo.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Dec 14 1998 - 17:37:06 PST

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