So I tried to figure out file format of this font. In this case S2FONT1.FNT. But it wasn't so easy as I thought.
Is there anybody here who can help me with this? Font is uncompressed.
//symbols info
4 bytes - number of symbols in font
number of symbols *
{
4 bytes - scale?
4 bytes - ?
4 bytes - bitmap height
4 bytes - bitmap width
}
//palette data
32 bytes - palette data (2 bytes per colour)
//bitmaps
number of symbols * bitmap data
screenshot000146.jpg
You do not have the required permissions to view the files attached to this post.
Last edited by ikskoks on Sun Jan 29, 2017 12:03 am, edited 3 times in total.
Hey. I have updated file format in the first post. Now I know more about these fonts.
First I thought that every FNT file has only one bitmap, but I was wrong. There is separate bitmap for each symbol.
And successfully I have found palette data, but I don't know what palette type is it.
So I'm close to figure this out, but not close enough. Any help? :p
I have updated file format again.
I think that these bitmaps are in 4 bytes per pixel format and palette is in 2 bytes per colour format (big endian) and with BGR colour order.
I have also checked for text to translate and unfortunatelly everything is in main exe file. ;/ Too bad.
You do not have the required permissions to view the files attached to this post.