Carbon


TXNInitTextension

Header: MacTextEditor.h Carbon status: Supported

Initializes MLTE.

OSStatus TXNInitTextension (
    TXNMacOSPreferredFontDescription iDefaultFonts[], 
    ItemCount iCountDefaultFonts, 
    TXNInitOptions iUsageFlags
);
Parameter descriptions
iDefaultFonts

An array of TXNMacOSPreferredFontDescription structures. You use this to specify a table of font information including the font family ID, point size, style, and script code. The table can be NULL or can have an entry for any script for which you would like to designate a default font. To designate that MLTE should use the default settings for a specified script, you need only supply a valid script code value along with a value of -1 in all other fields of a font description structure.

iCountDefaultFonts

A variable of type ItemCount. You use this to specify the number of scripts for which you are designating a default font in the iDefaultFonts array.

iUsageFlags

A “Initialization Option Masks” value of type TXNInitOptions. You use this to specify whether graphics, sound, and movies should be supported.

function result

A result code.

DISCUSSION

You should call this function along with any other initialization calls you make when your application starts up. If you call this function a second time, it has no effect; the defaults you set up the first time you called the TXNInitTextension function are in effect until you call the TXNTerminateTextension function.

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)