bcfnt data structure

  • Thread starter Thread starter lastinning
  • Start date Start date
  • Views Views 375
  • Replies Replies 2

lastinning

New Member
Newbie
Joined
Mar 16, 2025
Messages
3
Reaction score
0
Trophies
0
Age
38
XP
51
Country
Korea, South
Can anyone explain the structure of the font bitmap data in a BCFNT file? Simply replacing the bitmap data causes the characters to become misaligned, so it seems like the cwdh and cmap sections work together to determine the data area for each character. I've tried various methods, but I still can't figure it out. The only method that seems to work is using ninty-font to insert each character one by one, but even after tracking the hex changes, I can't find a consistent pattern.
 
The bitmap gets messed up 'cause TGLP, CMAP, and CWDH all gotta line up. Swapping the image without updating the others throws everything off. Ninty-font handles that automatically. Easiest move is to compare the hex before and after using it to see what’s really getting changed.
 

Site & Scene News

Popular threads in this forum