Carbon


FNSProfileGetIndReference

Header: FontSync.h Carbon status: Supported

Retrieves an indexed font reference from a profile.

OSStatus FNSProfileGetIndReference (
    FNSFontProfile iProfile, 
    UInt32 iWhichReference, 
    FNSFontReference *oReference
);
Parameter descriptions
iProfile

A reference to the font profile whose indexed font reference you want to determine.

iWhichReference

An index into the list of font references in the profile. Pass a value between 0 and one less than the number of references in the profile returned by the function FNSProfileCountReferences.

oReference

On return, a pointer to a reference to the indexed font reference.

function result

A result code. The result code kFNSBadProfileVersionErr indicates that the font profile has an unsupported format version. This may indicate that the profile is valid, but created by a later version of FontSync, or that the profile is truly invalid. The result code inputOutOfBounds indicates that the specified index was out of range. The result code kFNSInvalidProfileErr indicates that the profile does not have a valid structure. FNSProfileGetIndReference may return File Manager errors. Memory Manager errors indicate that you did not have enough memory available in your heap.

VERSION NOTES

Available beginning with FontSync 1.0.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when Font Sync 1.0 or later is present.


© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)