diff options
author | jaseg <jaseg@jaseg.net> | 2014-01-03 00:10:20 +0100 |
---|---|---|
committer | jaseg <jaseg@jaseg.net> | 2014-01-03 00:10:20 +0100 |
commit | 916aced1bef07001ef4eee2a1cde6cd6e33b4bc3 (patch) | |
tree | a8af06f0dcc65645801a2e20db64ca877b288f98 /host/matelight/font.h | |
parent | 34def4f660108632a9526c9ad3195fdb883d206d (diff) | |
download | matelight-916aced1bef07001ef4eee2a1cde6cd6e33b4bc3.tar.gz matelight-916aced1bef07001ef4eee2a1cde6cd6e33b4bc3.tar.bz2 matelight-916aced1bef07001ef4eee2a1cde6cd6e33b4bc3.zip |
Now with even more abstract art.
Diffstat (limited to 'host/matelight/font.h')
-rw-r--r-- | host/matelight/font.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/host/matelight/font.h b/host/matelight/font.h index e3e2e60..d21100c 100644 --- a/host/matelight/font.h +++ b/host/matelight/font.h @@ -4,6 +4,7 @@ #include <stdint.h> #include <stdio.h> +#include "color.h" // CAUTION: A glyph struct is always followed by the glyph's bitmap. typedef struct { @@ -16,10 +17,12 @@ typedef struct { // 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); +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__ |