Path: chuka.playstation.co.uk!news From: "Peter Armstrong" Newsgroups: scee.yaroze.freetalk.english Subject: Re: Multiple Font IDs Date: Tue, 8 Oct 2002 00:13:16 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 79 Message-ID: References: NNTP-Posting-Host: modem-674.cheetah.dialup.pol.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 "Andrew Murray" wrote in message news:ant22m$mrm10@www.netyaroze-europe.com... > Thanks Peter, > > Thats done the trick! > > FntLoad was messing it up, I think... but should it really matter? FntLoad loads the font pattern to vram and also initialises the print streams, so the second call is closing the first stream you opened. > 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. I thought the same so I'm a bit confused there myself. :) Peter > 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. > > > > > > > > > > > > > > >