aboutsummaryrefslogtreecommitdiff
path: root/host/matelight/font.h
diff options
context:
space:
mode:
authorjaseg <jaseg@jaseg.net>2014-01-03 16:40:44 +0100
committerjaseg <jaseg@jaseg.net>2014-01-03 16:40:44 +0100
commitd27f9ecf7ea92b702df128f856c1063aa91c51f2 (patch)
tree1dc2b1ff871e28966aceb7a6bf7da8f190a6cd24 /host/matelight/font.h
parent9ef5c135e894b2da95940e2556f4df9ce2205552 (diff)
downloadmatelight-d27f9ecf7ea92b702df128f856c1063aa91c51f2.tar.gz
matelight-d27f9ecf7ea92b702df128f856c1063aa91c51f2.tar.bz2
matelight-d27f9ecf7ea92b702df128f856c1063aa91c51f2.zip
Maybe gif-lib wasn't too bright an idea...
Diffstat (limited to 'host/matelight/font.h')
-rw-r--r--host/matelight/font.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/host/matelight/font.h b/host/matelight/font.h
deleted file mode 100644
index d21100c..0000000
--- a/host/matelight/font.h
+++ /dev/null
@@ -1,28 +0,0 @@
-
-#ifndef __FONT_H__
-#define __FONT_H__
-
-#include <stdint.h>
-#include <stdio.h>
-#include "color.h"
-
-// CAUTION: A glyph struct is always followed by the glyph's bitmap.
-typedef struct {
- uint8_t width;
- uint8_t height;
- int8_t x;
- int8_t y;
-} glyph_t;
-
-// Size of Unicode's basic multilingual plane
-#define BLP_SIZE 65536
-
-#define MAX_CSI_ELEMENTS 8
-
-// We could also use some fancy hashtable here, but unifont includes about 57k glyphs so we would hardly save any memory.
-int read_bdf(FILE *f, glyph_t **glyph_table, unsigned int glyph_table_size);
-
-// Requires buf to point to a buffer at least of size glyph->width*glyph->height.
-void render_glyph(glyph_t *glyph, uint8_t *buf, unsigned int bufwidth, unsigned int offx, unsigned int offy, color_t fg, color_t bg);
-
-#endif//__FONT_H__