FEZModding / FEZRepacker

Tool and library for unpacking and repacking FEZ assets
17 stars 4 forks source link

invalid spritefont asset conversion #22

Closed Krzyhau closed 7 months ago

Krzyhau commented 7 months ago

(...) The texts are interwoven. FEZ Screenshot 2024 02 17 - 15 21 50 61

Originally posted by @TROguz in https://github.com/FEZModding/FEZRepacker/issues/20#issuecomment-1950036020

TROguz commented 7 months ago

The problem may not be the json in the text files. I guess the problem is the font file. Usually, this kind of scripts are intertwined because of the font. Normally font files are compressed xnb. In your tool they are decrypted. Could it be that it doesn't compress the pak file automatically when repacking it?

Krzyhau commented 7 months ago

I've investigated the issue and it seems that, somehow, kerning data of the SpriteFont is nulled out when converted into a JSON file. Haven't isolated the cause of this issue yet, but hopefully I'll be able to resolve it shortly.