ugh
I think this font format (BNFR/JNFR) stores the glyphs as nine bits per line.
that is a terrible, terrible number
ugh
I think this font format (BNFR/JNFR) stores the glyphs as nine bits per line.
that is a terrible, terrible number
it's also got this weird thing where it seems like every other glyph lines up with bytes.
so you can see the B and the D, but the C is all messed up.
@foone One of the data formats we're forced to work with uses seven bits of seven bytes. Then uses the last byte to reconstruct the eighth bit of the first eight bytes.
We don't... know why...
@Craigp yikes
so the file has three chunks:
IMG1, which contains the pixels.
WID1, which is the widths/sizes? flags?
and CMP1, which says which glyphs are in the file, but annoyingly it seems to be "what glyphs are in the file after the obvious ones"
So like, it just assumes that 32-127 are always in there.
anyway I think I'm gonna dump the CMP1 chunk and then abuse an emulator into giving me all the raw glyphs. it's easier than figuring out this format
so the US/europe version seems to have 394 glyphs, and the japanese version has 984.
I think I'm only going to extract the former because I would need to know more japanese to even try the latter
I finished dumping it and stuck it in the death generator:
https://github.com/foone/SierraDeathGenerator/blob/master/games/nintendogs/nintendogs-font.png
@foone Still waiting on the GameCom Castlevania generator 😩
@biggestsonicfan someday
@foone hey, the actual NDS IPL stores fonts in a similar way (at least with a JNFR header). I've been trying to figure out what data belongs to what as it's just 3 different fonts right next to each other in a single file. I know you're probably busy, but I'd like *something* that allows me to rip the fonts from the firmware and have appropriate glyph mappings. If you can help me, please PM me either here or on Discord (@Dionicio3)
@Dionicio3 oh interesting. I bypassed extracting the glyphs myself by letting the game do it, but I can maybe help. Where can I find the JNFR file that you're talking about?
@foone that's the fun part, it's not in it's own file. you need to find a dump of the NDS firmware, then use a tool like fwunpack and dig through the extracted gui_data.bin
@Dionicio3 cool. I'll look at it tomorrow!
@Dionicio3 I got around to looking at it: this isn't the same format. There's none of the sub-chunks, so what I learned can't really help. Sorry!
@foone awesome, thanks
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.