Dink Smallwood RTFONT RTTEX: Difference between revisions
Jump to navigation
Jump to search
imported>Ikskoks |
imported>Ikskoks |
||
| Line 21: | Line 21: | ||
x bytes - font data / texture data | x bytes - font data / texture data | ||
</pre> | |||
</div> | |||
=== Other Structures === | |||
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;"> | |||
<pre> | |||
// 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 | |||
</pre> | </pre> | ||
</div> | </div> | ||
Revision as of 10:21, 30 May 2021
Back to index | Edit this page
RTFONT, RTTEX
- Format Type : Font / Texture
- Endian Order : Little Endian
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
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
- Modified RTPack
- Proton SDK (especially RTPack.exe)
- RTPackConverter
See Also