Every file contains 256 packages. One package stands for one of the 256 signs of the ASCII table. The first 32 signs are reserved control characters, so these packages are always zero.
Hex | Translation | Meaning |
---|---|---|
01 04 00 00 | 4 | 00004-.TSGA |
01 00 00 00 | 0 | level 0 |
Below follows the first package. | ||
00 00 | not used | ASCII table number |
00 00 | not used | width (in pixels) |
00 00 | not used | width again? |
00 00 | not used | height (in pixels) |
00 00 | not used | unknwon; always zero |
00 00 | not used | number of used packages in the TSFT file |
00 00 00 00 | not used | start package in the TSFT file |
00 00 00 00 | not used | unknown; always zero |
A glyph is basically a monochrome bitmap width * height pixels in size. Each pixel is stored in one byte in the TSFT file (fonts are antialiased so shades of gray are needed rather than storing each pixel in one bit) so each element in the TSFT file contains 4 pixels. Rows of pixels are not 4 bytes aligned so a row can start inside an element.
Back to File Types |