3dstools icon indicating copy to clipboard operation
3dstools copied to clipboard

BFFNT usage gives me the strange picture

Open alicechan-dev opened this issue 2 years ago • 3 comments

When I was about to change the font file of Splatoon, using this script by the following command python.exe -xf GambitMain.bffnt It gives me no error, it worked fine, but the extracted sheets (images) are not okay. It's almost pink-purple here. So is there a way to fix it? GambitMain.zip GambitMain_sheet0

Using with pypng 0.0.19

alicechan-dev avatar Aug 02 '23 15:08 alicechan-dev

In addition, the SwitchToolbox unlike this works fine, shows the font correctly I guess

alicechan-dev avatar Aug 02 '23 15:08 alicechan-dev

I guess I think it is because the original image is encoded by BC4_UNORM, and the glitched picture is the result of processing BC4_UNORM binaries as RGBA.

I faced a similar glitched picture when I was trying to export BotW font using bffnt.py. BotW fonts were also encoded by BC4_UNORM.

makungoron avatar Dec 10 '23 09:12 makungoron