Carbon


TXNSetFontDefaults

Header: MacTextEditor.h Carbon status: Supported

Specifies the font descriptions for each script used in a text object.

OSStatus TXNSetFontDefaults (
    TXNObject iTXNObject, 
    ItemCount iCount, 
    TXNMacOSPreferredFontDescription iFontDefaults[]
);
Parameter descriptions
iTXNObject

A variable of type TXNObject. Pass the text object for the document whose fonts you want to specify.

iCount

A variable of type ItemCount. You use this to specify how many font descriptions are in the iFontDefaults array.

iFontDefaults

An array of TXNMacOSPreferredFontDescription structures that contains the font description you want to use for each script.

function result

A result code.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


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