Project

General

Profile

Revision 183

can reduce letter size; working on increasing

View differences:

font.h
1 1
#ifndef FONT_H_INCLUDED
2 2
#define FONT_H_INCLUDED
3 3

  
4
struct glyph;
5
typedef struct glyph glyph_t;
4
struct font;
5
typedef struct font font_t;
6
font_t* (font_ctor)(const char *s);
7
void    (font_dtor)(font_t *p);
6 8

  
7
glyph_t* (glyph_ctor)(const char **xpm);
8
void     (glyph_dtor)(glyph_t *p);
9
struct text;
10
typedef struct text text_t;
11
text_t* (text_ctor)(const font_t *fnt, const char *txt);
12
void    (text_dtor)(text_t *p);
13
void (text_set_text) (text_t *p, const char *txt);
14
void (text_set_pos)  (text_t *p, int16_t x, int16_t y);
15
void (text_set_size) (text_t *p, unsigned size);
16
void (text_set_color)(text_t *p, uint32_t color);
17
void (text_draw)     (const text_t *p);
9 18

  
10
//glyph_t** (get_font)(const char *s);
11

  
12 19
#endif //FONT_H_INCLUDED

Also available in: Unified diff