![]() |
ATSUGetFontFeatureTypes |
||||
Header: | ATSUnicode.h | Carbon status: | Supported | |
Obtains a list of the available feature types in a font.
OSStatus ATSUGetFontFeatureTypes ( ATSUFontID iFont, ItemCount iMaximumTypes, ATSUFontFeatureType oTypes[], ItemCount *oActualTypeCount );
The ID of the font whose defined feature types you want to determine.
The maximum number of feature types in the font. Typically, this is equivalent to the number of elements in the oTypes array.
An array of all the available feature types in a font. Before calling ATSUGetFontFeatureTypes, pass a pointer to memory that you have allocated for this array. You should allocate enough memory to contain the number of font feature types passed back in the oTypeCount parameter of the function ATSUCountFontFeatureTypes. On return, an array of the feature types defined in the font. You cannot pass NULL for this parameter.
On return, a pointer to the actual number of feature types defined in the font. This may be greater than the value passed in the iMaximumTypes parameter. You cannot pass NULL for this parameter.
A result code. The result code kATSUInvalidFontErr indicates that the ID does not correspond to any installed font.
Available beginning with ATSUI 1.0.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.5 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)