Dink Smallwood RTFONT RTTEX

From XentaxWiki
Jump to: navigation, search

Back to index | Edit this page

RTFONT, RTTEX


Format Specifications

//header
6 bytes (char) - signature  // "RTPACK"
1 byte (uint8) - version // 0
1 byte (uint8) - reserved
4 bytes (uint32) - compressed size
4 bytes (uint32) - decompressed size
1 byte (uint8) - compression type  // 0 - None
                                   // 1 - ZLIB
15 bytes - reserved

x bytes - font data / texture data


Other Structures

// RTFONT file format

// header
6 bytes (char) - signature  // "RTFONT"
2 bytes (uint16) - character spacing
2 bytes (uint16) - line height
2 bytes (uint16) - line spacing
2 bytes (uint16) - shadow X offset
2 bytes (uint16) - shadow Y offset
2 bytes (uint16) - first character
2 bytes (uint16) - last character
2 bytes (uint16) - blank character width
2 bytes (uint16) - font state count
2 bytes (uint16) - kerning pair count
124 bytes - reserved

// characters data
num_of_characters *
{
   2 bytes (uint16) - position X
   2 bytes (uint16) - position Y
   2 bytes (uint16) - character size X
   2 bytes (uint16) - character size Y
   2 bytes (uint16) - character offset X
   2 bytes (uint16) - character offset Y
   4 bytes (float) - character position U
   4 bytes (float) - character position V
   4 bytes (float) - character position U2
   4 bytes (float) - character position V2
   2 bytes (uint16) - xadvance
}

x bytes - font states

x bytes - font image data


// RTTEX file format

// header
6 bytes (char) - signature  // "RTTXTR"
4 bytes (uint32) - height
4 bytes (uint32) - width
4 bytes (uint32) - format
4 bytes (uint32) - original height
4 bytes (uint32) - original width
1 byte (unsigned char) - alpha flag
1 byte (unsigned char) - compression flag
2 bytes (unsigned char) - reserved
4 bytes (uint32) - mipmap count
64 bytes - reserved

x bytes - texture data

MultiEx BMS Script

Not written yet.

Notes and Comments

  • Data can be compressed with ZLIB compression.

Games

List of games using this file format:

  • Dink smallwood
  • Dink Smallwood HD
  • Growtopia
  • Tanked

Compatible Programs

See Also