Carbon


FNSReferenceFlattenedSize

Header: FontSync.h Carbon status: Supported

Calculates the space required for the flattened form of a font reference.

OSStatus FNSReferenceFlattenedSize (
    FNSFontReference iReference, 
    ByteCount *oFlattenedSize
);
Parameter descriptions
iReference

The font reference whose flattened form you wish to compute.

oFlattenedSize

On return, a pointer to the flattened size (in bytes) of the font reference.

function result

A result code. The result code kFNSBadReferenceVersionErr indicates that the font reference has an unsupported format version. 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 the font reference is invalid.

DISCUSSION

You can call the FNSReferenceFlattenedSize function to calculate the size of a flattened reference. You can also accomplish this by passing a NULL pointer in the iFlatReference parameter of the function FNSReferenceFlatten.

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)