DGen/SDL
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
font.h
Go to the documentation of this file.
1 #ifndef __FONT_H__
2 #define __FONT_H__
3 
4 #include <stddef.h>
5 #include <stdint.h>
6 
7 enum font_type {
12 };
13 
14 extern size_t font_text_width(const char *msg, size_t len,
15  unsigned int max_width, unsigned int max_height,
16  enum font_type type);
17 extern size_t font_text_max_len(unsigned int max_width,
18  unsigned int max_height,
19  enum font_type type);
20 extern size_t font_text(uint8_t *buf,
21  unsigned int max_width, unsigned int max_height,
22  unsigned int bytes_per_pixel, unsigned int pitch,
23  const char *msg, size_t len, unsigned int mark,
24  enum font_type type);
25 
26 #endif /* __FONT_H__ */