update Changes
[imager.git] / T1 / imt1.h
CommitLineData
a556912d
TC
1#ifndef IMAGER_IMT1_H
2#define IMAGER_IMT1_H
3
4#include "imdatatypes.h"
5
1aaae40f
TC
6typedef struct i_t1_font_tag *i_t1_font_t;
7
8extern void
9i_t1_start(void);
10
a556912d
TC
11extern undef_int
12i_init_t1(int t1log);
13
14extern void
15i_close_t1(void);
16
1aaae40f 17extern i_t1_font_t
a556912d
TC
18i_t1_new(char *pfb,char *afm);
19
20extern int
1aaae40f 21i_t1_destroy(i_t1_font_t font);
a556912d
TC
22
23extern undef_int
1aaae40f 24i_t1_cp(i_t1_font_t font, i_img *im,i_img_dim xb,i_img_dim yb,int channel,double points,char* str,size_t len,int align, int utf8, char const *flags, int aa);
a556912d
TC
25
26extern int
1aaae40f 27i_t1_bbox(i_t1_font_t font,double points,const char *str,size_t len,i_img_dim *cords, int utf8,char const *flags);
a556912d
TC
28
29extern undef_int
1aaae40f 30i_t1_text(i_t1_font_t font, i_img *im,i_img_dim xb,i_img_dim yb,const i_color *cl,double points,const char* str,size_t len,int align, int utf8, char const *flags, int aa);
a556912d
TC
31
32extern int
1aaae40f 33i_t1_has_chars(i_t1_font_t font, const char *text, size_t len, int utf8,
a556912d
TC
34 char *out);
35
36extern int
1aaae40f 37i_t1_face_name(i_t1_font_t font, char *name_buf, size_t name_buf_size);
a556912d
TC
38
39extern int
1aaae40f 40i_t1_glyph_name(i_t1_font_t font, unsigned long ch, char *name_buf,
a556912d
TC
41 size_t name_buf_size);
42#endif