I was looking for a way to put any .ttp or.ftp font files into mod but i can't find anyway to fix it.
I searched lots of way to search but know nothing about modding, Hex editing or things like that.
I was wondering if anyone can help me with decrypting this file.
So, here's something i found out while i was working about .font files.
(BTW BAD ENGLISH+FORMAT)
-There is 3 type of files in fonts folder: (.merged_font) (.texture) (.font)
-.merged_font file is a script that merges 2~3 .font files.
you can open this file with normal editor like Notepad++.
-.texture file has image of all the letter which can be shown in-game.
Just like other files, this can be renamed into .dds file to modify picture of letters and icons.
If it's possible to modify .font files, you can add more image to make it possible to display in your pc, not others.
-.font file cannot be opened in normal way. but it shares many aspect with "bitmap font" as it seems to connect Text codes with image in .texture.
I searched about how to open files, and only way I could find was using Hex.
If we open .font file with Hex editor(I used 30-day trial 010 Editor), I couldn't understand at first, but I searched more about how to look it.
It seems to be consist of 4 part: (header), (stuffs i can't understand), (code that shows text), (original font info).
-Original font info is written in Hex at the bottom of file. When changed into text, it shows original font info(duh).
for example, font_digital.font says digital number font zS07
I have no idea what zS07(7A 53 30 37 in Hex) is, but i could find same image used in .texture by searching this info.
-Problem is I can't understand other part from now on. I tried everything...
- Making .font file?
If we use BMFont to make bitmap font, try setting font descriptor as binary, textures as dds /w compression dxt3. It will make .dds file and .fnt file.
This .dds can be easily changed to .texture file. (COULDN'T CHECKED WHETHER IT CAN REPLACE ORIGINAL FILE OR NOT)
However, .fnt file cannot be opened in simple editor.
I tried Hex editor to open this, and it showed a lot like .font file.
I'm assuming .font file is like mutant-brother of .fnt file.
So maybe it's possible to change .fnt file into .font file?
-part 3. letter-image part
This part shows which letter uses which image. This part repeats 8 bytes of data.
example: 50 00 00 00 10 00 00 00
-how to edit this part:
first, check the 1st line in part 2. find out which letter does this line shows. find the unicode of this letter. and edit this part.
next, check the next line, same thing goes on and on until you ran out of part 2.
-part 4. ??? (I'm guessing it's kerning part)
This part seems to show data about kerning of the font. but you can erase this part and fix the header. there was no problem.
Still, this part was repeating 12 bytes of data. some of you guys might find what this part means...
-part 5. original font info.
Just like I found 3 days ago. this part explains name of the font. this part is only part which is written in text. it seems you can type anything you want in this part. but i suggest to end this part with zS07(7A 53 30 37 in Hex) to prevent any problem.