Binary Font Data Format

Codehead's Bitmap Font Generator

Binary Font Data File Format

CBFG's binary output has a simple file structure. The header contains the texture sizes, cell sizes and base character offset. The remaining data is the character width values.

Offset Size (Bytes) Description
0 4 Map Width
4 4 Map Height
8 4 Cell Width
12 4 Cell Height
16 1 Start Character
17 256 Character Widths