Carbon


ATSUCountFontFeatureSelectors

Header: ATSUnicode.h Carbon status: Supported

Determines the number of feature selectors defined for a given feature type in a font.

OSStatus ATSUCountFontFeatureSelectors (
    ATSUFontID iFont, 
    ATSUFontFeatureType iType, 
    ItemCount *oSelectorCount
);
Parameter descriptions
iFont

The ID of the font whose feature selectors you want to count.

iType

A valid feature type whose selectors you want to count.

oSelectorCount

On return, a pointer to the number of feature selectors defined for the feature type in the font. You cannot pass NULL for this parameter.

function result

A result code. The result code kATSUInvalidFontErr indicates that the ID does not correspond to any installed font.

DISCUSSION

The ATSUCountFontFeatureSelectors function determines the total number of feature selectors defined for a given feature type. You can use the count passed back in the oSelectorCount parameter to determine how much memory to allocate for the oSelectors array in the function ATSUGetFontFeatureSelectors.

VERSION NOTES

Available beginning with ATSUI 1.0.

AVAILABILITY

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)