Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 2 - TextEdit / TextEdit Reference
Data Structures


Text Style Record

Text style records are used for communicating character attribute information between the application and several TextEdit routines, such as TEContinuousStyle and TEReplaceStyle. They carry the same information as the style element records in the style table, but without the reference count, line height, and font ascent.

The TextStyle data type defines a text style record.

TYPE  TextStyle = 
      RECORD
         tsFont:  Integer;    {font family number}
         tsFace:  Style;      {character style}
         tsSize:  Integer;    {size in points}
         tsColor: RGBColor;   {absolute RGB color}
      END;

TextStylePtr = ^TextStyle;
TextStyleHandle = ^TextStylePtr;
Field Description
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.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996