Carbon


TextStyle

Header: TextEdit.h

struct TextStyle {
    SInt16 tsFont; 
    Style tsFace; 
    SInt16 tsSize; 
    RGBColor tsColor; 
    RGBColor tsColor;
};
typedef TextStyle TextStylePtr;

Field descriptions

tsFont

The font family number.

tsFace

The character style (bold, italic, plain, and so forth).

tsSize

The text size in points.

tsColor

The RGB (red, green, blue) color.

tsColor

The TextStyle data type defines a text style structure.

Text style structures, which are passed as variables or reference parameters, are used for communicating character attribute information between the application and several TextEdit functions, such as TEContinuousStyle and TEReplaceStyle. They carry the same information as the style element structures in the style table, but without the reference count, line height, and font ascent.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)