1 #ifndef _ARCH_AMIGAOS_TTFGLYPHENGINE_H
2 #define _ARCH_AMIGAOS_TTFGLYPHENGINE_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 */
20 TT_Face_Properties properties
;
23 TT_Instance_Metrics imetrics
;
26 TT_Glyph_Metrics metrics
;
29 TT_Kerning kerning_dir
;
30 TT_Kern_Subtable
*kern_subtable
;
33 /* ttf.library current request/state */
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
;
57 TT_Fixed hold_sin
, hold_cos
;
60 TT_Matrix rotate_matrix
;
63 TT_Matrix shear_matrix
;
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 */