Add basic text rendering

This commit is contained in:
fruchti 2018-08-04 11:30:00 +02:00
parent 064cdc5ba0
commit 22b6ee1136
16 changed files with 43620 additions and 6 deletions

18
src/font.h Normal file
View file

@ -0,0 +1,18 @@
#pragma once
#include <stdint.h>
#include <stddef.h>
typedef struct
{
int width;
const uint8_t *bitmap;
} FontGlyph_t;
typedef struct
{
int height;
int charoffset;
int glyphcount;
const FontGlyph_t *glyphs;
} Font_t;