aboutsummaryrefslogtreecommitdiff
path: root/src/lib/include/proto/font_file.h
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-11 14:35:54 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-11 14:35:54 +0100
commit5e9251bd48acafff575ed1c740e4dc05ec175508 (patch)
tree00f95aafd4e0399bcb1858f24b7e79b06a216f30 /src/lib/include/proto/font_file.h
parent052ca1dc143b1df2800f9c4e43daf80c96fb472e (diff)
downloadkogata-5e9251bd48acafff575ed1c740e4dc05ec175508.tar.gz
kogata-5e9251bd48acafff575ed1c740e4dc05ec175508.zip
Add simple drawing code & font loading.
Diffstat (limited to 'src/lib/include/proto/font_file.h')
-rw-r--r--src/lib/include/proto/font_file.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/include/proto/font_file.h b/src/lib/include/proto/font_file.h
new file mode 100644
index 0000000..e57c0ab
--- /dev/null
+++ b/src/lib/include/proto/font_file.h
@@ -0,0 +1,14 @@
+#pragma once
+
+#include <stdint.h>
+#include <stddef.h>
+
+#define ASCII_BITMAP_FONT_MAGIC 0xD184C274
+
+typedef struct {
+ uint32_t magic;
+ uint16_t cw, ch;
+ uint32_t nchars;
+} ascii_bitmap_font_header;
+
+/* vim: set ts=4 sw=4 tw=0 noet :*/