Path: chuka.playstation.co.uk!news From: "Andrew Murray" Newsgroups: scee.yaroze.freetalk.english Subject: Re: Multiple Font IDs Date: Mon, 7 Oct 2002 23:24:51 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 67 Message-ID: References: NNTP-Posting-Host: pc-80-195-75-64-dn.blueyonder.co.uk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Thanks Peter, Thats done the trick! FntLoad was messing it up, I think... but should it really matter? FntFlush(Gfx.FntID[0]); and FntFlush(Gfx.FntID[1]); seem to have done the trick but I was under the impression that -1 cleared all font calls to all IDs. Oh well. I had a look at the libref and it says that up to 8 separate fnt ids are supported. It works! Andrew. "Peter Armstrong" wrote in message news:ans97q$mrm9@www.netyaroze-europe.com... > I had a quick play with this and it looks like it's the second FntLoad > that's causing the problem, try calling it just the once. Also flush the > streams individually, FntFlush(-1) doesn't seem to work. > > Peter > > "Andrew Murray" wrote in message > news:anqhvl$mrm8@www.netyaroze-europe.com... > > Hey Dudes, > > > > Is it possible to have multiple fonts open to the screen at one time? > > > > I am trying to create two font IDs, one is located on the top half of the > > screen (at 320x256 PAL res) and the other in the bottom half. The code > > segments of interest are as follows: > > > > In Graphics.c: > > > > int LoadFont(int y1, int width, int height) > > { > > FntLoad(960,256); > > return(FntOpen(16, y1, width, height, 0, 512)); > > }//loadfont > > > > In Main.c: > > > > Gfx.FntID[0] = LoadFont(0, SCRNW, 127); > > Gfx.FntID[1] = LoadFont(128, SCRNW, 127); > > > > And later in Main.c: > > > > FntPrint(Gfx.FntID[0], "Frame: %d\n", frameNumber); > > FntPrint(Gfx.FntID[1], "Frame: %d\n", frameNumber); > > > > The problem is that all calls to FntPrint (wither with Gfx.FntID[0] or > > Gfx.FntID[1]) all seem to be in the lower part of the screen, i.e. where > the > > second (Gfx.FntID[1]) font ID has been opened. > > > > Any suggestions? > > > > Thanks, > > Andrew. > > > > > > > >