summaryrefslogtreecommitdiff
path: root/include/fitz/text.h
blob: 1a321f8f40c22e6976a8d0c30b68a74ff21be802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
typedef struct fz_textel_s fz_textel;

struct fz_textel_s
{
	float x, y;
	int cid;
};

struct fz_textnode_s
{
	fz_node super;
	fz_font *font;
	fz_matrix trm;
	int len, cap;
	fz_textel *els;
};

fz_error *fz_newtextnode(fz_textnode **textp, fz_font *face);
fz_error *fz_addtext(fz_textnode *text, int g, float x, float y);
fz_error *fz_endtext(fz_textnode *text);