![]() |
TextStyle |
Header: TextEdit.h |
struct TextStyle { SInt16 tsFont; Style tsFace; SInt16 tsSize; RGBColor tsColor; RGBColor tsColor; }; typedef TextStyle TextStylePtr;
The font family number.
The character style (bold, italic, plain, and so forth).
The text size in points.
The RGB (red, green, blue) color.
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)