At least: font code generator, exchange code support for color 128x128
This commit is contained in:
19
font.h
19
font.h
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user