![]() |
TXNInitTextension |
||||
Header: | MacTextEditor.h | Carbon status: | Supported | |
Initializes MLTE.
OSStatus TXNInitTextension ( TXNMacOSPreferredFontDescription iDefaultFonts[], ItemCount iCountDefaultFonts, TXNInitOptions iUsageFlags );
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.
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.
A
A result code.
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.
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)