47 #if PRAGMA_STRUCT_ALIGN
48 #pragma options align = mac68k
49 #elif PRAGMA_STRUCT_PACKPUSH
51 #elif PRAGMA_STRUCT_PACK
55 typedef UInt32 FMGeneration;
64 typedef SInt16 FMFontFamily;
65 typedef SInt16 FMFontStyle;
66 typedef SInt16 FMFontSize;
77 FMFontFamily fontFamily;
78 FMFontStyle fontStyle;
98 kInvalidGeneration = 0L,
99 kInvalidFontFamily = -1,
105 kFMCurrentFilterFormat = 0L
109 typedef UInt32 FMFilterSelector;
112 kFMFontTechnologyFilterSelector = 1L,
113 kFMFontContainerFilterSelector = 2L,
114 kFMGenerationFilterSelector = 3L,
115 kFMFontFamilyCallbackFilterSelector = 4L,
116 kFMFontCallbackFilterSelector = 5L,
117 kFMFontDirectoryFilterSelector = 6L
122 kFMTrueTypeFontTechnology = FOUR_CHAR_CODE(
'true'),
123 kFMPostScriptFontTechnology = FOUR_CHAR_CODE(
'typ1')
126 typedef CALLBACK_API(OSStatus, FMFontFamilyCallbackFilterProcPtr)(
127 FMFontFamily iFontFamily,
void *iRefCon);
128 typedef CALLBACK_API(OSStatus, FMFontCallbackFilterProcPtr)(
FMFont iFont,
131 FMFontFamilyCallbackFilterUPP;
132 typedef STACK_UPP_TYPE(FMFontCallbackFilterProcPtr) FMFontCallbackFilterUPP;
141 FMFontFamilyCallbackFilterUPP
143 #if !OPAQUE_UPP_TYPES
146 uppFMFontFamilyCallbackFilterProcInfo = 0x000003B0
150 FMFontFamilyCallbackFilterProcPtr userRoutine)
153 (ProcPtr)(userRoutine), uppFMFontFamilyCallbackFilterProcInfo,
154 GetCurrentArchitecture());
157 #define NewFMFontFamilyCallbackFilterUPP(userRoutine) \
158 (FMFontFamilyCallbackFilterUPP) NewRoutineDescriptor( \
159 (ProcPtr)(userRoutine), uppFMFontFamilyCallbackFilterProcInfo, \
160 GetCurrentArchitecture())
172 FMFontCallbackFilterUPP
174 #if !OPAQUE_UPP_TYPES
177 uppFMFontCallbackFilterProcInfo = 0x000003F0
180 inline FMFontCallbackFilterUPP
184 (ProcPtr)(userRoutine), uppFMFontCallbackFilterProcInfo,
185 GetCurrentArchitecture());
188 #define NewFMFontCallbackFilterUPP(userRoutine) \
189 (FMFontCallbackFilterUPP) NewRoutineDescriptor( \
190 (ProcPtr)(userRoutine), uppFMFontCallbackFilterProcInfo, \
191 GetCurrentArchitecture())
205 #if !OPAQUE_UPP_TYPES
213 #define DisposeFMFontFamilyCallbackFilterUPP(userUPP) \
214 DisposeRoutineDescriptor(userUPP)
228 #if !OPAQUE_UPP_TYPES
235 #define DisposeFMFontCallbackFilterUPP(userUPP) \
236 DisposeRoutineDescriptor(userUPP)
250 FMFontFamilyCallbackFilterUPP userUPP);
251 #if !OPAQUE_UPP_TYPES
255 FMFontFamilyCallbackFilterUPP userUPP)
257 return (OSStatus)CALL_TWO_PARAMETER_UPP(
258 userUPP, uppFMFontFamilyCallbackFilterProcInfo, iFontFamily, iRefCon);
261 #define InvokeFMFontFamilyCallbackFilterUPP(iFontFamily, iRefCon, userUPP) \
263 CALL_TWO_PARAMETER_UPP((userUPP), uppFMFontFamilyCallbackFilterProcInfo, \
264 (iFontFamily), (iRefCon))
278 FMFontCallbackFilterUPP userUPP);
279 #if !OPAQUE_UPP_TYPES
282 FMFontCallbackFilterUPP userUPP)
284 return (OSStatus)CALL_TWO_PARAMETER_UPP(
285 userUPP, uppFMFontCallbackFilterProcInfo, iFont, iRefCon);
288 #define InvokeFMFontCallbackFilterUPP(iFont, iRefCon, userUPP) \
289 (OSStatus) CALL_TWO_PARAMETER_UPP( \
290 (userUPP), uppFMFontCallbackFilterProcInfo, (iFont), (iRefCon))
294 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
296 #define NewFMFontFamilyCallbackFilterProc(userRoutine) \
297 NewFMFontFamilyCallbackFilterUPP(userRoutine)
298 #define NewFMFontCallbackFilterProc(userRoutine) \
299 NewFMFontCallbackFilterUPP(userRoutine)
300 #define CallFMFontFamilyCallbackFilterProc(userRoutine, iFontFamily, iRefCon) \
301 InvokeFMFontFamilyCallbackFilterUPP(iFontFamily, iRefCon, userRoutine)
302 #define CallFMFontCallbackFilterProc(userRoutine, iFont, iRefCon) \
303 InvokeFMFontCallbackFilterUPP(iFont, iRefCon, userRoutine)
308 SInt16 fontFolderDomain;
315 FMFilterSelector selector;
318 FourCharCode fontTechnologyFilter;
319 FSSpec fontContainerFilter;
320 FMGeneration generationFilter;
321 FMFontFamilyCallbackFilterUPP fontFamilyCallbackFilter;
322 FMFontCallbackFilterUPP fontCallbackFilter;
328 typedef OptionBits ATSOptionFlags;
329 typedef UInt32 ATSGeneration;
330 typedef UInt32 ATSFontContainerRef;
331 typedef UInt32 ATSFontFamilyRef;
332 typedef UInt32 ATSFontRef;
333 typedef UInt16 ATSGlyphRef;
334 typedef Float32 ATSFontSize;
337 kATSGenerationUnspecified = 0L,
338 kATSFontContainerRefUnspecified = 0L,
339 kATSFontFamilyRefUnspecified = 0L,
340 kATSFontRefUnspecified = 0L
355 Float32 avgAdvanceWidth;
356 Float32 maxAdvanceWidth;
358 Float32 minLeftSideBearing;
359 Float32 minRightSideBearing;
371 Float32 underlinePosition;
373 Float32 underlineThickness;
378 kATSItalicQDSkew = (1 << 16) / 4,
379 kATSBoldQDStretch = (1 << 16) * 3 / 2,
380 kATSRadiansFactor = 1144
384 typedef UInt16 ATSCurveType;
387 kATSCubicCurveType = 0x0001,
388 kATSQuadCurveType = 0x0002,
389 kATSOtherCurveType = 0x0003
395 UInt32 controlBits[1];
425 typedef ATSGlyphRef GlyphID;
427 #if PRAGMA_STRUCT_ALIGN
428 #pragma options align = reset
429 #elif PRAGMA_STRUCT_PACKPUSH
431 #elif PRAGMA_STRUCT_PACK
435 #ifdef PRAGMA_IMPORT_OFF
void DisposeFMFontCallbackFilterUPP(FMFontCallbackFilterUPP userUPP)
UInt32 FMFont
Definition: ATSTypes.h:74
FMFontCallbackFilterUPP NewFMFontCallbackFilterUPP(FMFontCallbackFilterProcPtr userRoutine)
FMFontFamilyCallbackFilterUPP NewFMFontFamilyCallbackFilterUPP(FMFontFamilyCallbackFilterProcPtr userRoutine)
OSStatus InvokeFMFontCallbackFilterUPP(FMFont iFont, void *iRefCon, FMFontCallbackFilterUPP userUPP)
void DisposeFMFontFamilyCallbackFilterUPP(FMFontFamilyCallbackFilterUPP userUPP)
OSStatus InvokeFMFontFamilyCallbackFilterUPP(FMFontFamily iFontFamily, void *iRefCon, FMFontFamilyCallbackFilterUPP userUPP)
File Manager (MFS, HFS, and HFS+) Interfaces.
Basic Macintosh data types.
Mixed Mode Manager Interfaces.
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
Definition: ATSTypes.h:344
Definition: ATSTypes.h:407
Definition: ATSTypes.h:415
Definition: ATSTypes.h:393
Definition: ATSTypes.h:400
Definition: ATSTypes.h:313
Definition: ATSTypes.h:307
Definition: ATSTypes.h:92
Definition: ATSTypes.h:76
Definition: ATSTypes.h:82
Definition: ATSTypes.h:87
Definition: MacTypes.h:220