Carbon


FNSReferenceCountNames

Header: FontSync.h Carbon status: Supported

Determines the number of internal font names in a reference.

OSStatus FNSReferenceCountNames (
    FNSFontReference iReference, 
    ItemCount *oNameCount
);
Parameter descriptions
iReference

A reference to the font reference whose font names you wish to count.

oNameCount

On return, a pointer to the number of internal font names, other than the font family name passed to the GetFNum function, recorded in the reference. The font family passed to the function GetFNum is available by calling the function GetFamilyInfo. This includes the PostScript and unique names, if available.

function result

A result code. The result code kFNSBadReferenceVersionErr indicates that a font reference has an unsupported version number. This may indicate that the reference is valid, but created by a later version of FontSync, or that the reference is truly invalid. The result code kFNSInvalidReferenceErr indicates that a font reference is invalid. The result code kFNSInsufficientDataErr indicates that the mask constant kFNSMissingDataNoMatch was set and both references being compared are missing the same data. The result code kFNSMismatchErr indicates that no font names were recorded in the reference.

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)