diff options
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; +}; |