At least: font code generator, exchange code support for color 128x128

This commit is contained in:
2019-08-04 15:35:44 -07:00
parent e0b49ba109
commit 77f09bca16
47 changed files with 899 additions and 16431 deletions

19
font.h
View File

@@ -19,10 +19,27 @@
* THE SOFTWARE.
*/
#include <stdint.h>
#include <stddef.h>
#ifndef _FONT_H_
#define _FONT_H_
#include "fontem.h"
struct glyph {
const uint8_t *bitmap;
uint8_t width;
uint8_t width_bytes;
uint8_t height;
uint8_t top;
uint8_t left;
};
struct font {
const char *name;
const struct glyph *glyphs[128];
uint8_t width;
uint8_t height;
};
const struct glyph *glyph_for_char(const struct font *font, char c);