Radfordhound / HedgeLib

A C++ library and collection of tools that aims to make modding games in the Sonic the Hedgehog franchise easier.
MIT License
90 stars 29 forks source link

Add ForcesSCFNTConverter #13

Closed ActualMandM closed 6 years ago

ActualMandM commented 6 years ago

This tool allows you to drag and drop any TTF or OTF and have it be converted into a SCFNT compatible with Sonic Forces.

Format: The file is little endian with a BINA210 header that lasts for regular length being 0x40. The next segment starts with KFCS1000 and lasts for 0x28. After KFCS1000, there's the file size. For 0x10, there is just 00s. Afterwards, we see the file size again. Then the TTF/OTF file starts. I'm bad at explaining things so sorry if this didn't make much sense, along with the 50 million edits done to this message.

637100_20180519233602_1

ActualMandM commented 6 years ago

Some commits are still going through, so don't merge yet.