Path: chuka.playstation.co.uk!news From: "Peter Armstrong" Newsgroups: scee.yaroze.freetalk.english Subject: Re: Multiple Font IDs Date: Mon, 7 Oct 2002 16:20:35 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 48 Message-ID: References: NNTP-Posting-Host: modem-3231.chimpanzee.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 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. > > >