Mac OS 9
ATSTypes.h File Reference

Public interfaces for Apple Type Services components. More...

#include <MacTypes.h>
#include <Files.h>
#include <MixedMode.h>

Go to the source code of this file.

Data Structures

struct  FMFontFamilyInstance
 
struct  FMFontFamilyIterator
 
struct  FMFontIterator
 
struct  FMFontFamilyInstanceIterator
 
struct  FMFontDirectoryFilter
 
struct  FMFilter
 
struct  ATSFontMetrics
 
struct  ATSUCurvePath
 
struct  ATSUCurvePaths
 
struct  ATSGlyphIdealMetrics
 
struct  ATSGlyphScreenMetrics
 

Macros

#define NewFMFontFamilyCallbackFilterUPP(userRoutine)
 
#define NewFMFontCallbackFilterUPP(userRoutine)
 
#define DisposeFMFontFamilyCallbackFilterUPP(userUPP)    DisposeRoutineDescriptor(userUPP)
 
#define DisposeFMFontCallbackFilterUPP(userUPP)    DisposeRoutineDescriptor(userUPP)
 
#define InvokeFMFontFamilyCallbackFilterUPP(iFontFamily, iRefCon, userUPP)
 
#define InvokeFMFontCallbackFilterUPP(iFont, iRefCon, userUPP)
 
#define NewFMFontFamilyCallbackFilterProc(userRoutine)    NewFMFontFamilyCallbackFilterUPP(userRoutine)
 
#define NewFMFontCallbackFilterProc(userRoutine)    NewFMFontCallbackFilterUPP(userRoutine)
 
#define CallFMFontFamilyCallbackFilterProc(userRoutine, iFontFamily, iRefCon)    InvokeFMFontFamilyCallbackFilterUPP(iFontFamily, iRefCon, userRoutine)
 
#define CallFMFontCallbackFilterProc(userRoutine, iFont, iRefCon)    InvokeFMFontCallbackFilterUPP(iFont, iRefCon, userRoutine)
 

Typedefs

typedef UInt32 FMGeneration
 
typedef SInt16 FMFontFamily
 
typedef SInt16 FMFontStyle
 
typedef SInt16 FMFontSize
 
typedef UInt32 FMFont
 
typedef struct FMFontFamilyInstance FMFontFamilyInstance
 
typedef struct FMFontFamilyIterator FMFontFamilyIterator
 
typedef struct FMFontIterator FMFontIterator
 
typedef struct FMFontFamilyInstanceIterator FMFontFamilyInstanceIterator
 
typedef UInt32 FMFilterSelector
 
typedef void * iRefCon
 
typedef struct FMFontDirectoryFilter FMFontDirectoryFilter
 
typedef struct FMFilter FMFilter
 
typedef OptionBits ATSOptionFlags
 
typedef UInt32 ATSGeneration
 
typedef UInt32 ATSFontContainerRef
 
typedef UInt32 ATSFontFamilyRef
 
typedef UInt32 ATSFontRef
 
typedef UInt16 ATSGlyphRef
 
typedef Float32 ATSFontSize
 
typedef struct ATSFontMetrics ATSFontMetrics
 
typedef UInt16 ATSCurveType
 
typedef struct ATSUCurvePath ATSUCurvePath
 
typedef struct ATSUCurvePaths ATSUCurvePaths
 
typedef struct ATSGlyphIdealMetrics ATSGlyphIdealMetrics
 
typedef struct ATSGlyphScreenMetrics ATSGlyphScreenMetrics
 
typedef ATSGlyphRef GlyphID
 

Enumerations

enum  { kInvalidGeneration = 0L , kInvalidFontFamily = -1 , kInvalidFont = 0L }
 
enum  { kFMCurrentFilterFormat = 0L }
 
enum  {
  kFMFontTechnologyFilterSelector = 1L , kFMFontContainerFilterSelector = 2L , kFMGenerationFilterSelector = 3L , kFMFontFamilyCallbackFilterSelector = 4L ,
  kFMFontCallbackFilterSelector = 5L , kFMFontDirectoryFilterSelector = 6L
}
 
enum  { kFMTrueTypeFontTechnology = FOUR_CHAR_CODE('true') , kFMPostScriptFontTechnology = FOUR_CHAR_CODE('typ1') }
 
enum  { uppFMFontFamilyCallbackFilterProcInfo = 0x000003B0 }
 
enum  { uppFMFontCallbackFilterProcInfo = 0x000003F0 }
 
enum  { kATSGenerationUnspecified = 0L , kATSFontContainerRefUnspecified = 0L , kATSFontFamilyRefUnspecified = 0L , kATSFontRefUnspecified = 0L }
 
enum  { kATSItalicQDSkew = (1 << 16) / 4 , kATSBoldQDStretch = (1 << 16) * 3 / 2 , kATSRadiansFactor = 1144 }
 
enum  { kATSCubicCurveType = 0x0001 , kATSQuadCurveType = 0x0002 , kATSOtherCurveType = 0x0003 }
 

Functions

typedef CALLBACK_API (OSStatus, FMFontFamilyCallbackFilterProcPtr)(FMFontFamily iFontFamily
 
typedef CALLBACK_API (OSStatus, FMFontCallbackFilterProcPtr)(FMFont iFont
 
typedef STACK_UPP_TYPE (FMFontFamilyCallbackFilterProcPtr) FMFontFamilyCallbackFilterUPP
 
typedef STACK_UPP_TYPE (FMFontCallbackFilterProcPtr) FMFontCallbackFilterUPP
 
FMFontFamilyCallbackFilterUPP NewFMFontFamilyCallbackFilterUPP (FMFontFamilyCallbackFilterProcPtr userRoutine)
 
FMFontCallbackFilterUPP NewFMFontCallbackFilterUPP (FMFontCallbackFilterProcPtr userRoutine)
 
void DisposeFMFontFamilyCallbackFilterUPP (FMFontFamilyCallbackFilterUPP userUPP)
 
void DisposeFMFontCallbackFilterUPP (FMFontCallbackFilterUPP userUPP)
 
OSStatus InvokeFMFontFamilyCallbackFilterUPP (FMFontFamily iFontFamily, void *iRefCon, FMFontFamilyCallbackFilterUPP userUPP)
 
OSStatus InvokeFMFontCallbackFilterUPP (FMFont iFont, void *iRefCon, FMFontCallbackFilterUPP userUPP)
 

Detailed Description

Public interfaces for Apple Type Services components.

Introduced In: Mac OS 9 / Carbon
Avaliable From: Universal Interfaces 3.4.1
Copyright: © 1997-2001 by Apple Computer, Inc., all rights reserved.

For bug reports, consult the following page on the World Wide Web:

http://developer.apple.com/bugreporter/

Macro Definition Documentation

◆ InvokeFMFontCallbackFilterUPP

#define InvokeFMFontCallbackFilterUPP (   iFont,
  iRefCon,
  userUPP 
)
Value:
(OSStatus) CALL_TWO_PARAMETER_UPP( \
(userUPP), uppFMFontCallbackFilterProcInfo, (iFont), (iRefCon))

◆ InvokeFMFontFamilyCallbackFilterUPP

#define InvokeFMFontFamilyCallbackFilterUPP (   iFontFamily,
  iRefCon,
  userUPP 
)
Value:
(OSStatus) \
CALL_TWO_PARAMETER_UPP((userUPP), uppFMFontFamilyCallbackFilterProcInfo, \
(iFontFamily), (iRefCon))

◆ NewFMFontCallbackFilterUPP

#define NewFMFontCallbackFilterUPP (   userRoutine)
Value:
(FMFontCallbackFilterUPP) NewRoutineDescriptor( \
(ProcPtr)(userRoutine), uppFMFontCallbackFilterProcInfo, \
GetCurrentArchitecture())
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)

◆ NewFMFontFamilyCallbackFilterUPP

#define NewFMFontFamilyCallbackFilterUPP (   userRoutine)
Value:
(FMFontFamilyCallbackFilterUPP) NewRoutineDescriptor( \
(ProcPtr)(userRoutine), uppFMFontFamilyCallbackFilterProcInfo, \
GetCurrentArchitecture())

Typedef Documentation

◆ FMFont

typedef UInt32 FMFont

The font family is a collection of fonts, each of which is identified by an FMFont reference that maps to a single object registered with the font database. The font references associated with the font family consist of individual outline and bitmapped fonts that may be used with the font access routines of the Font Manager and ATS.

Function Documentation

◆ DisposeFMFontCallbackFilterUPP()

void DisposeFMFontCallbackFilterUPP ( FMFontCallbackFilterUPP  userUPP)

DisposeFMFontCallbackFilterUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ DisposeFMFontFamilyCallbackFilterUPP()

void DisposeFMFontFamilyCallbackFilterUPP ( FMFontFamilyCallbackFilterUPP  userUPP)

DisposeFMFontFamilyCallbackFilterUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ InvokeFMFontCallbackFilterUPP()

OSStatus InvokeFMFontCallbackFilterUPP ( FMFont  iFont,
void *  iRefCon,
FMFontCallbackFilterUPP  userUPP 
)

InvokeFMFontCallbackFilterUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ InvokeFMFontFamilyCallbackFilterUPP()

OSStatus InvokeFMFontFamilyCallbackFilterUPP ( FMFontFamily  iFontFamily,
void *  iRefCon,
FMFontFamilyCallbackFilterUPP  userUPP 
)

InvokeFMFontFamilyCallbackFilterUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ NewFMFontCallbackFilterUPP()

FMFontCallbackFilterUPP NewFMFontCallbackFilterUPP ( FMFontCallbackFilterProcPtr  userRoutine)

NewFMFontCallbackFilterUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ NewFMFontFamilyCallbackFilterUPP()

FMFontFamilyCallbackFilterUPP NewFMFontFamilyCallbackFilterUPP ( FMFontFamilyCallbackFilterProcPtr  userRoutine)

NewFMFontFamilyCallbackFilterUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later