summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2005-06-13 00:05:33 +0000
committerIan C <ianc@noddybox.co.uk>2005-06-13 00:05:33 +0000
commit885f90c8f382390a841043a602a71d1dfbd7be67 (patch)
tree69939e3c40708d345a6346dd41b080c888a59600
parent77fcf5d3be7ea00465ffa133fc0871a960152d02 (diff)
Added file describing file format
-rw-r--r--format.txt19
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)