2 * Fitz display tree text node.
4 * The text node is an optimization to reference glyphs in a font resource
5 * and specifying an individual transform matrix for each one.
7 * The trm field contains the a, b, c and d coefficients.
8 * The e and f coefficients come from the individual elements,
9 * together they form the transform matrix for the glyph.
11 * Glyphs are referenced by glyph ID.
12 * The Unicode text equivalent is kept in a separate array
13 * with indexes into the glyph array.
16 TODO the unicode textels
18 struct fz_textgid_s { float e, f; int gid; };
19 struct fz_textucs_s { int idx; int ucs; };
23 typedef struct fz_textel_s fz_textel
;
40 fz_error
*fz_newtextnode(fz_textnode
**textp
, fz_font
*face
);
41 fz_error
*fz_clonetextnode(fz_textnode
**textp
, fz_textnode
*oldtext
);
42 fz_error
*fz_addtext(fz_textnode
*text
, int g
, float x
, float y
);
43 fz_error
*fz_endtext(fz_textnode
*text
);