Kodewerx https://www.kodewerx.org/forum/ |
|
Tingle 2 DS - Need Help Analyzing unpacked font images https://www.kodewerx.org/forum/viewtopic.php?f=2&t=7024 |
Page 1 of 1 |
Author: | oldbushie [ Wed Sep 16, 2009 9:46 pm ] |
Post subject: | Tingle 2 DS - Need Help Analyzing unpacked font images |
I have these files: http://www.aerobushentertainment.com/mi ... tFiles.zip From what I can tell, there's 10 fonts packed into the extensionless file according to the viw file, but I have no clue how to extract those fonts. The inf file appears to provide some basic information for how the file is broken up. I'm guessing it either specifies width and height of the images it wants or it's providing address pointers. If anyone could at least point me in the right direction, I'd greatly appreciate it. I tried NFTRedit just for kicks but it's definitely not an NFTR file. More like DFV (or is it VFD?). The reason why I'm trying to do this is because I made this tool: Aerobush Screenshot Translator Version 1.25, and I'd like to have a full set of fonts for the game I'm interested in. So far, I've been manually grabbing the fonts from screenshots of the game and making font image files that my application can use to translate games on the fly. Edit: Aha, I at least know how the file is broken up now: 000000 + 001778 -> 001778 + 001544 -> 002CBC + 0016C0 -> 00437C + 00C5E4 -> 010960 + 002224 -> 012B84 + 00262C -> 0151B0 + 000710 -> 0158C0 + 00206C -> 01792C + 001968 -> 019294 + 001B70 -> EOF 10 address ranges, 10 fonts, it fits. I broke it into subcomponents and am looking at the result. Still, though, I would appreciate tips on how to parse a generic-seeming image file. I'm using Irfanview and many different combinations of loading raw image data. |
Author: | oldbushie [ Thu Sep 17, 2009 2:08 pm ] |
Post subject: | Re: Tingle 2 DS - Need Help Analyzing unpacked font images |
Yay, I found a vague pattern! It appears to be a set of individually compressed binary images for each individual character. I'm still not sure what the header means yet, but at least I isolated the header. |
Author: | HyperHacker [ Thu Sep 17, 2009 7:48 pm ] |
Post subject: | Re: Tingle 2 DS - Need Help Analyzing unpacked font images |
Those could be compiled display lists; i.e. a series of commands to be interpreted by the graphics engine to draw characters. |
Author: | oldbushie [ Thu Sep 17, 2009 8:05 pm ] |
Post subject: | Re: Tingle 2 DS - Need Help Analyzing unpacked font images |
Telling it how to draw the characters or telling it to pull characters from somewhere else? I haven't seen anything else resembling a font file in the rom... |
Author: | oldbushie [ Mon Sep 21, 2009 8:26 am ] |
Post subject: | Re: Tingle 2 DS - Need Help Analyzing unpacked font images |
I tried messing around with the address ranges in the inf file and repacking in order to create font files for all the other fonts. It's a bit slow, but seems to work well. Essentially, I was tweaking the hex values so that the characters on the name selection screen are the font I want to rip. At least I confirmed that the fonts are definitely contained in that file. Also, the fnt_prf file is a mystery to me, but it definitely doesn't seem to describe a font like the others do. I did see a bunch of weird numbers when I went to the A-Z part of the name selection screen, starting from 33 on up. |
Author: | HyperHacker [ Sun Sep 27, 2009 1:53 am ] |
Post subject: | Re: Tingle 2 DS - Need Help Analyzing unpacked font images |
Most likely how to draw. There could be "render texture" commands in it, but that'd be silly. |
Page 1 of 1 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |