From f54e7e8c2aeb4fafebf0d5bd5570b060462c9ecf Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Thu, 1 Feb 2018 08:31:01 +0200 Subject: Initial commit --- src/escpos/font.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/escpos/font.h (limited to 'src/escpos/font.h') 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 +#include + +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; +}; -- cgit v1.2.3