10tons MFT

From XentaxWiki
Jump to: navigation, search

Back to index | Edit this page

MFT

  • Format Type : Font
  • Endian Order : Little Endian
  • Signature : MEG / MEG Font / MEG_Font_v6 / MEG_Font_v7


Format Specifications

// MFT font file format (version 6)
// Based on "small.mft" from "Neon Chrome"

// header
12 bytes (char) - signature // "MEG_Font_v6"
8 bytes (char) - character encoding  // "LATIN-1"
4 bytes (uint32) - unknown  // something related to font size
4 bytes (uint32) - font size  // reversed, lower value means bigger font size
4 bytes (int32) - font height  // lower value means font shifted down
4 bytes (uint32) - number of characters? / palette size?  // 256



// characters data
number_of_characters * {
   4 bytes (uint32) - character code  // e.g. 89 for "Y"
   2 bytes (int16) - character Y offset
   2 bytes (int16) - character X offset  // "0" means that character is centered
   2 bytes (int16) - character kerning
   1 byte (uint8) - encoding ID?  // 1 - for latin-1,  0 - not allowed (game crash)
   256 bytes - palette?   // unused?
   2 bytes (uint16) - image width
   2 bytes (uint16) - image height
   x bytes - image data
}

Notes and Comments

  • This file format occurs in games made by 10tons.
  • Palette data seems to be unused.
  • Image data is 32-bit (probably r8g8b8a8 or something similar).

Games

List of games using this file format:

  • Azkend (*.MFT)
  • King Oddball (*.MFT) (version 6)
  • Neon Chrome / Neon Chrome Arena (*.MFT) (version 6)
  • Sparkle Unleashed (*.MFT)
  • Undead Horde (*.MFT) (version 7)

QuickBMS Script

Not written yet.

Compatible Programs

None.