pspDebugScreen font width

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
abszero
Posts: 2
Joined: Wed Jul 06, 2005 12:47 pm

pspDebugScreen font width

Post by abszero »

Is there a simple way to limit the included font to 6x8 pixels (5x7 plus a row and column of space)? If that was the case, you could fit a standard terminal's worth of characters on the screen (80 wide * 6 pixels = 480), which would be very helpful to a project of mine.

As it stands, since essentially all of the standard characters included in the font are this size, my program looks okay for the most part when I treat it as a 6x8 font. The problem arises when I try to write random characters on the screen because it overwrites an 8x8 block when it's writing a new character and since I have them spaced at 6x8, the character to the right gets partially overwritten with black. So if I could just limit the blitter to writing 6 columns instead of 8, that would be great.

Failing that, I could write my own text blitter I guess, but I don't see a pixel function in the pspsdk or something like pgGetVramAddr() like in the pg.c minilibrary. Any suggestions?

-abszero
rinco
Posts: 255
Joined: Fri Jan 21, 2005 2:12 pm
Location: Canberra, Australia

Post by rinco »

from pspsdk/sdk/ge/pspge.h:

Code: Select all

/** Get the address of VRAM (normally 0x04000000?)
  *
  * @return The base VRAM address
  */
u32 sceGeEdramGetAddr(void);
but it would be cooler if you figured out the Sony font stuff.
Post Reply