DGen/SDL
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
sdl
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
{
8
FONT_TYPE_16X26
,
9
FONT_TYPE_8X13
,
10
FONT_TYPE_7X5
,
11
FONT_TYPE_AUTO
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__ */
Generated on Sat Feb 9 2013 21:30:13 for DGen/SDL by
1.8.1.1