aboutsummaryrefslogtreecommitdiff
path: root/font.h
diff options
context:
space:
mode:
Diffstat (limited to 'font.h')
-rw-r--r--font.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/font.h b/font.h
new file mode 100644
index 0000000..62ef4bf
--- /dev/null
+++ b/font.h
@@ -0,0 +1,15 @@
+/* font.h - access to the embedded 8x8 bitmap font. */
+#ifndef MOUSEBOARD_FONT_H
+#define MOUSEBOARD_FONT_H
+
+#define FONT_W 8
+#define FONT_H 8
+
+/*
+ * Return the 8-byte glyph for ASCII character c. Each byte is one row, top to
+ * bottom; within a row bit 0 (LSB) is the leftmost pixel. Non-printable codes
+ * return the blank glyph.
+ */
+const unsigned char *font_glyph(char c);
+
+#endif /* MOUSEBOARD_FONT_H */