>>106866886
so this renders a single glyph, not layed out text? with stb_truetype it would be something like
#define STB_TRUETYPE_IMPLEMENTATION
#include <stb_truetype.h>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <stb_image_write.h>
FILE* f = fopen(path, "rb");
if (!f) { err(1, "fopen"); }
fseek(f, 0, SEEK_END);
long size = ftell(f);
fseek(f, 0, SEEK_SET);
void* data = malloc(size);
Comment too long. Click here to view the full text.