diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-01 08:31:01 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-12 03:34:18 +0200 |
commit | f54e7e8c2aeb4fafebf0d5bd5570b060462c9ecf (patch) | |
tree | b3bcc7ca21cda7d655bfcc0d9ec26d4a6668f27f /src/escpos/font.h |
Initial commit
Diffstat (limited to 'src/escpos/font.h')
-rw-r--r-- | src/escpos/font.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/escpos/font.h b/src/escpos/font.h new file mode 100644 index 0000000..9b8e608 --- /dev/null +++ b/src/escpos/font.h @@ -0,0 +1,16 @@ +#pragma once + +#include <stdint.h> +#include <stddef.h> + +struct glyph { + size_t offset; + uint8_t width; +}; + +struct font { + const struct glyph *ucs2glyph; + const uint8_t *data; + size_t max_ucs; + uint8_t height; +}; |