Merge pull request #13 from rdebath/patch-fixes
[congif.git] / mbf.h
blob55006b3e6b859f410e9faf1a40bf94a85dcaa63e
1 typedef struct Header {
2 uint16_t ng;
3 uint8_t w, h;
4 uint16_t nr;
5 } Header;
7 typedef struct Range {
8 uint16_t offset, length;
9 } Range;
11 typedef struct Font {
12 Header header;
13 int stride;
14 Range *ranges;
15 uint8_t *data;
16 } Font;
18 Font *load_font(const char *fname);
19 int search_glyph(Font *font, uint16_t code);
20 int get_index(Font *font, uint16_t code);