FNT FILES

These files store a proportional character set. FNT files are found in DARK.GOB

This set may not be complete. The font used to display the ammo, for instance contains only the numbers and the ':' character.

FNT_Header IS

{

Magic char[4] // 'FNT' + 15h (21d)
Height byte // Height of the font
u1 byte // Unknown
DataSize int // Data after header
First byte // First character in font
Last byte // Last character in font
pad1 byte[22] // 22 times 0x00

}

Then follow the characters.

There is (Last-First+1) FNT_Character blocks (one per character).

FNT_Character IS

{

Width byte // Width of the character
Picture byte[Width*Height] // Bytes describing the character,
// encoded by columns from bottom to top
// Each byte is an index in the
// current PAL palette

}