summaryrefslogtreecommitdiff
path: root/format.txt
blob: 6d3adb075c064b5dc2bcbbce1e55dd75c0930ad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
The format of data files produced follows this format.  All ints are least
significant byte first:

4 bytes		"BMF1"
4 byte int	1 if the font is fixed, otherwise 0.

Repeated for all characters from space to tilde:

4 byte int	Width of the character
4 byte int	Height of the character
4 byte int	ARGB value of pixel at (0,0)
4 byte int	ARGB value of pixel at (0,1)
4 byte int	ARGB value of pixel at (0,2)
....
4 byte int	ARGB value of pixel at (1,0)
4 byte int	ARGB value of pixel at (1,1)
4 byte int	ARGB value of pixel at (1,2)
....
4 byte int	ARGB value of pixel at (width-1,height-1)