Up   Previous   Next  

Setting Up Font Descriptions

When you call the MLTE initialization function TXNInitTextension , you pass an array of font descriptions , which are structures of type TXNMacOSPreferredFontDescription. Each font description specifies the font family ID, point size, style, and encoding. The array can be NULL or can have an entry for any script for which you would like to designate a default font. You can use the MLTE constants kTXNDefaultFontName, kTXNDefaultFontStyle, kTXNDefaultFontSize, and kTXNSystemDefaultEncoding as values for a font description. See Initializing MLTE for an example of assigning font default values to a single font description.


Copyright © 2001 Apple Computer, Inc. (Last Updated January 11, 2001)

Up   Previous   Next