From 885f90c8f382390a841043a602a71d1dfbd7be67 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 13 Jun 2005 00:05:33 +0000 Subject: Added file describing file format --- format.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 format.txt 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) -- cgit v1.2.3