Executioners Font Format

From ModdingWiki
Jump to navigation Jump to search
Executioners Font Format
There is no image of a font in this format — upload one!
Format typeFont
Max glyph count256
Minimum glyph size (pixels)0×0
Maximum glyph size (pixels)255×255
Access modeIndexed
Metadata?None
Bitmap glyphs?Yes
Vector glyphs?No
Compressed glyphs?Yes
Hidden data?Yes
Games

Executioners uses a simple, RLE-compressed format to store its game font. It consists of a 512 byte header followed by blocks of data.

The header of the font file consists of 256 UINT16LE values giving the addresses of all font symbols in the file. Blank symbols have an address of 0, while all 'valid' symbols should have an address of at least 0x200. This allows the game to display text strings consisting of all 256 values present in normal one-byte-per-character extended ASCII encodings.

Following this header are blocks of data. Each block is a masked VGA image in Executioners RLE Format.

The original file leaves one byte between each block of symbol data. These bytes seem to contain random data, which indicates an uncleared buffer. The game perfectly accepts the file without these padding bytes. The font can also be optimised by saving identical symbols only once and making the index refer to the same data multiple times.

The original font does not contain a space symbol. It will be used when added at index 32, but if no symbol is available, it defaults to a width of 6 pixels.