BMF – ByteMap font format

offsetsizemeaning
04magic header (its hexa dump is: E1 E6 D5 1A)
41version (currently 11 hexa)
51line-height
61size-over the base line (-128..127)
71size-under the base line (-128..127)
81add-space after each char (-128..127)
91size-inner (non-caps level) (-128..127)
101count of used colors
111highest used color attribute
124reserved
161number of RGB entries (P)
17P×3font palette (RGB bytes, max=63)
17+P×31info length (L)
18+P×3Linfo string
19+P×3+L2number of characters in font
21+P×3+L?list of bitmap character definitions (as follows)

offsetsizemeaning
01which character
11character width (W)
21character height (H)
31relx – horizontal offset according to cursor (–128…127)
41rely – vertical offset according to cursor (–128…127)
51horizontal cursor shift after drawing the character
6W×Hcharacter data itself (uncompressed, 8 bits/pixel)

Example: example
Fj:Q
relx0-210
rely0220
w44110
h8949
shift4238

addspace=1. The red arrow is cursor position during outputing each character of the text.

For more explanation choose to `test` any of fonts on this website.
[back to main page]