#ifndef TTF_H #define TTF_H #include "util.h" struct font_glyph; struct ttf_decode_result { struct font_glyph *glyphs; u16 glyphs_count; u16 *cache_indices; /* Array of indices into the `glyphs` array in order of `cache_chars` */ struct image_rgba image_data; }; void ttf_startup(void); struct ttf_decode_result ttf_decode(struct arena *arena, struct buffer encoded, f32 point_size, struct string cache_chars); #endif