Mac OS 9
CGFont.h
Go to the documentation of this file.
1 
19 #ifndef __CGFONT__
20 #define __CGFONT__
21 
22 #ifndef __CGBASE__
23 #include <CGBase.h>
24 #endif
25 
26 #if PRAGMA_ONCE
27 #pragma once
28 #endif
29 
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #endif
34 
35 #if PRAGMA_IMPORT
36 #pragma import on
37 #endif
38 
39 #if PRAGMA_STRUCT_ALIGN
40 #pragma options align = mac68k
41 #elif PRAGMA_STRUCT_PACKPUSH
42 #pragma pack(push, 2)
43 #elif PRAGMA_STRUCT_PACK
44 #pragma pack(2)
45 #endif
46 
47 #if PRAGMA_ENUM_ALWAYSINT
48 #if defined(__fourbyteints__) && !__fourbyteints__
49 #define __CGFONT__RESTORE_TWOBYTEINTS
50 #pragma fourbyteints on
51 #endif
52 #pragma enumsalwaysint on
53 #elif PRAGMA_ENUM_OPTIONS
54 #pragma option enum =int
55 #elif PRAGMA_ENUM_PACK
56 #if __option(pack_enums)
57 #define __CGFONT__RESTORE_PACKED_ENUMS
58 #pragma options(!pack_enums)
59 #endif
60 #endif
61 
62  typedef struct CGFont *CGFontRef;
63  typedef unsigned short CGGlyph;
64  /**** Font creation. ***/
76  CGFontRef
77  CGFontCreateWithPlatformFont(void *platformFontReference);
78 
79  /**** Retain & release. ***/
90  CGFontRef
91  CGFontRetain(CGFontRef font);
92 
103  void
104  CGFontRelease(CGFontRef font);
105 
106 #if PRAGMA_ENUM_ALWAYSINT
107 #pragma enumsalwaysint reset
108 #ifdef __CGFONT__RESTORE_TWOBYTEINTS
109 #pragma fourbyteints off
110 #endif
111 #elif PRAGMA_ENUM_OPTIONS
112 #pragma option enum =reset
113 #elif defined(__CGFONT__RESTORE_PACKED_ENUMS)
114 #pragma options(pack_enums)
115 #endif
116 
117 #if PRAGMA_STRUCT_ALIGN
118 #pragma options align = reset
119 #elif PRAGMA_STRUCT_PACKPUSH
120 #pragma pack(pop)
121 #elif PRAGMA_STRUCT_PACK
122 #pragma pack()
123 #endif
124 
125 #ifdef PRAGMA_IMPORT_OFF
126 #pragma import off
127 #elif PRAGMA_IMPORT
128 #pragma import reset
129 #endif
130 
131 #ifdef __cplusplus
132 }
133 #endif
134 
135 #endif
xxx put contents here xxx
void CGFontRelease(CGFontRef font)
CGFontRef CGFontRetain(CGFontRef font)
CGFontRef CGFontCreateWithPlatformFont(void *platformFontReference)