Extracting font data from a PSP game?

Crosshash

Active Member
OP
Newcomer
Joined
Jul 15, 2016
Messages
33
Trophies
0
Age
34
XP
120
Country
Hello, I've been wanting to extract the font data from a PSP. I originally toyed with using something like Tesseract because it seemed pretty popular but found it had too many issues with Japanese games. I'm assuming that somewhere in a PSP game (or any ROM for that matter), the actual glyphs will have some kind of data representation and I'm wondering how exactly one might go about extracting those. I'm happy to write a tool myself so I'd quite like some tips on what direction to go in.

I'm assuming that it's adjacent to texture extraction.

Thank you
 
Last edited by Crosshash,

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
United Kingdom
Most handheld and console games until things started being basically PCs will use bitmap fonts, vector stuff has common on PC for a while and creeps in on said might as well be a PC consoles. You tend not to have hardware guided formats like you might have for some other things either, and when you do it is more the really old "home computers" that have such things baked in somewhere (though the PSP can have an element of this at times).

Some will be nice regular images (textures implies 3d aspects and all that follows, 2d stuff being more than adequate for most font needs, and while some consoles have 2d as a consequence of projecting a texture onto a flat surface... eh). Some will be per character/glyph/rune/... sizes at graphics level, possibly with character data inserted between the tiles to make your life with a tile editor that much more annoying. The PSP being a relatively modern device also means no real restrictions on some of the more exotic aspects of font design (variable width is as nothing, can also do vertical placement for ascenders and descenders). If Sony provided a font format it is not as commonly used by devs as something like ntfr on the DS was (which itself is not that commonly used compared to say the sound and other graphics formats).

If extracting is the goal (as in nice bmp on your computer to maybe use in something else, as opposed to needing it for a RO hack) then the for non Japanese games the entire font might be shoved into memory such that a graphics viewer in an emulator can grab things, for Japanese games with the many kanji likely available then less so. You can possibly still get it done -- if you can find the text (usually a far easier hack) you can do the Japanese equivalent of The quick brown fox jumps over the lazy dog while hammering the print screen button.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    BakerMan @ BakerMan: it looks like a little kids' game, and bunny (welcome btw) is looking for an uncensor patch