20 lines
515 B
C
20 lines
515 B
C
#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;
|
|
};
|
|
|
|
struct ttf_startup_receipt { i32 _; };
|
|
struct ttf_startup_receipt ttf_startup(void);
|
|
struct ttf_decode_result ttf_decode(struct arena *arena, struct buffer encoded, f32 point_size, u32 *cache_codes, u32 cache_codes_count);
|
|
|
|
#endif
|