6 #define DEBUG_FONTBITMAP(x)
9 #define dprintf kprintf
13 # define MAKE_ID(a,b,c,d) (((a)<<24)|((b)<<16)|((c)<<8)|(d))
17 #define DEBUG_FONTBITMAP(x)
18 #define DEBUG_FONTINFO(x)
19 #define DEBUG_FONTWINDOW(x)
20 #define DEBUG_ADDDIR(x)
23 #include FT_FREETYPE_H
25 //#include FT_RENDER_H
26 //#include FT_OUTLINE_H
27 #include FT_TRUETYPE_TABLES_H
29 #include <freetype/freetype.h>
31 #ifndef OT_GlyphMap8Bit
32 #define OT_GlyphMap8Bit (OT_Level1 | 0x108)
34 #define OT_Spec1_FontFile (OT_Spec1 | OT_Indirect)
35 #define OT_Spec2_CodePage (OT_Level1 | OT_Indirect | 0x102)
36 #define OT_Spec3_AFMFile (OT_Level1 | OT_Indirect | 0x103)
37 #define OT_Spec4_Metric (OT_Level1 | 0x104)
38 #define OT_Spec5_BBox (OT_Level1 | 0x105)
39 #define OT_Spec6_FaceNum (OT_Level1 | 0x106) // index for .ttc files
40 #define OT_Spec7_BMSize (OT_Level1 | 0x107) // embbeded bitmap size
42 // Values for OT_Spec4_Metric
43 #define METRIC_GLOBALBBOX 0 // default
44 #define METRIC_RAW_EM 1
45 #define METRIC_ASCEND 2
46 #define METRIC_TYPOASCEND 3
47 #define METRIC_USWINASCEND 4
48 #define METRIC_CUSTOMBBOX 5
49 #define METRIC_BMSIZE 6
52 #define UFHN(func) ((IPTR (*)())&func)
56 #define UFH2(rt, func, p1, p2) \
58 struct EmulLibEntry func##Gate = { TRAP_LIB, 0, (void (*)(void)) func }; \
64 #define UFH3(rt, func, p1, p2, p3) \
66 struct EmulLibEntry func##Gate = { TRAP_LIB, 0, (void (*)(void)) func }; \
76 extern UWORD codepage
[256];
78 BOOL
IsDefaultCodePage(void);