Carbon


ATSUCompareStyles

Header: ATSUnicode.h Carbon status: Supported

Compares the contents of two style objects.

OSStatus ATSUCompareStyles (
    ATSUStyle iFirstStyle, 
    ATSUStyle iSecondStyle, 
    ATSUStyleComparison *oComparison
);
Parameter descriptions
iFirstStyle

A reference to a style object whose contents you want to compare. You cannot pass NULL for this parameter.

iSecondStyle

A reference to a style object whose contents you want to compare. You cannot pass NULL for this parameter.

oComparison

On return, a pointer to a value that indicates the results of the comparison. See “Style Comparison Constants” for a description of possible values. You cannot pass NULL for this parameter.

function result

A result code.

DISCUSSION

The ATSUCompareStyles function compares the contents of two style objects, including style run attributes, font features, and font variations. It does not consider reference constants or application-defined style run attributes. You can call ATSUCompareStyles to implement style sheets and tables of style runs.

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)