diff options
Diffstat (limited to 'format.txt')
-rw-r--r-- | format.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/format.txt b/format.txt new file mode 100644 index 0000000..6d3adb0 --- /dev/null +++ b/format.txt @@ -0,0 +1,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)
|