contrib/OWB: add correct SDL dependency, fix compilers used
[AROS-Contrib.git] / freetype1 / lib / arch / amigaos / ttfglyphengine.h
blob2bf66b7c8ad0266d09f963c673e7d1c9889620e1
1 #ifndef _ARCH_AMIGAOS_TTFGLYPHENGINE_H
2 #define _ARCH_AMIGAOS_TTFGLYPHENGINE_H
4 #include "freetype.h"
5 #include "extend/ftxkern.h" /* kerning */
7 struct TTF_GlyphEngine_ {
9 /* diskfont standard */
10 struct Library *gle_Library; /* should be our lib base */
11 char *gle_Name; /* library name "ttf" */
13 /* ttf.library specific - private data */
15 /* freetype specific entites */
16 TT_Engine engine;
18 TT_Face face;
19 TT_CharMap char_map;
20 TT_Face_Properties properties;
22 TT_Instance instance;
23 TT_Instance_Metrics imetrics;
25 TT_Glyph glyph;
26 TT_Glyph_Metrics metrics;
27 TT_Outline outline;
29 TT_Kerning kerning_dir;
30 TT_Kern_Subtable *kern_subtable;
31 long KernPairs;
33 /* ttf.library current request/state */
34 int last_error;
35 int face_established;
36 char ttf_filename[256];
37 char base_filename[256];
38 char bold_filename[256];
39 char italic_filename[256];
40 char bold_italic_filename[256];
42 unsigned long cmap_index;
43 unsigned long requested_cmap;
44 unsigned short platform, encoding;
45 int request_char;
46 int request_char2;
47 int glyph_code;
49 int instance_changed;
50 int point_size;
51 int corrected_upem;
52 int metric_source;
53 int metric_custom;
54 int xres, yres;
55 int hinted;
57 TT_Fixed hold_sin, hold_cos;
59 int do_rotate;
60 TT_Matrix rotate_matrix;
62 int do_shear;
63 TT_Matrix shear_matrix;
65 int do_embold;
66 int embold_x, embold_y;
68 int bold_sig, italic_sig;
70 unsigned short int codepage[256];
72 /* struct GlyphMap GMap0; */
73 struct GlyphMap *GMap;
74 /* void *GlyphPool; */
79 typedef struct TTF_GlyphEngine_ TTF_GlyphEngine ;
81 /* flag that we need to pick an encoding table */
82 #define NO_CMAP_SET 0xFFFFFFFF
84 TTF_GlyphEngine *AllocGE(void);
85 void FreeGE(TTF_GlyphEngine *);
86 int set_last_error(TTF_GlyphEngine *, int);
87 int ChooseEncoding(TTF_GlyphEngine *);
88 int SetInstance(TTF_GlyphEngine *);
89 void set_default_codepage(TTF_GlyphEngine *);
91 #endif /* _ARCH_AMIGAOS_TTFGLYPHENGINE_H */