summaryrefslogtreecommitdiff
path: root/fonts.h
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-23 10:04:04 +0200
committerErich Eckner <git@eckner.net>2018-10-23 10:04:04 +0200
commit80e3c3ce5744272d3eef9f9b32f7da5ae96088cd (patch)
tree43a0cad03bd1dea9eef4416df604767cfa5e7aa9 /fonts.h
parentd646809abf052fd949ca839395735a91d7084198 (diff)
downloadanzeige-80e3c3ce5744272d3eef9f9b32f7da5ae96088cd.tar.xz
fonts: put rendering into a function
Diffstat (limited to 'fonts.h')
-rw-r--r--fonts.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/fonts.h b/fonts.h
index 774ca60..2ccd92a 100644
--- a/fonts.h
+++ b/fonts.h
@@ -1,4 +1,6 @@
-char const symbols[96*5] = {
+#define SYMBOL_WIDTH 5
+
+static char const symbols[96 * SYMBOL_WIDTH] = {
0x00,0x00,0x00,0x00,0x00, // space
0x00,0x00,0x2F,0x00,0x00, // !
0x00,0x07,0x00,0x07,0x00, // "
@@ -97,3 +99,5 @@ char const symbols[96*5] = {
// 0x7f .. 0xaf missing
0x00,0x02,0x05,0x02,0x00 // °
};
+
+void render(unsigned char *input, int input_len, unsigned char *output, int max_output_len, int skip_unprintables);