summaryrefslogtreecommitdiff
path: root/render/font.h
blob: 4d789a2087e8722e704944a567756e7f00814994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
 * $Id: font.h,v 1.2 2002/05/11 15:22:24 bursa Exp $
 */

/**
 * structures and typedefs
 */

struct font_set;
typedef unsigned int font_id;
struct font_split {
	unsigned long width;
	unsigned long height;
	const char * end;
};

/**
 * interface
 */

struct font_set * font_set_create(void);
font_id font_add(struct font_set * font_set, const char * name, unsigned int weight,
		unsigned int size);
void font_set_free(struct font_set * font_set);
struct font_split font_split(struct font_set * font_set, font_id id, const char * text,
		unsigned long width, int force);