Text sample data
An atom that contains text data.
Overview
The format of the text data is a 16-bit length word followed by the actual text. The length word specifies the number of bytes of text, not including the length word itself. Following the text, there may be one or more atoms containing additional information for drawing and searching the text.
The following table lists the currently defined text sample extensions.
Text sample extension | Description |
|---|---|
| Style information for the text. Allows you to override the default style in the sample description or to define more than one style for a sample. The data is a TextEdit style scrap. |
| Table of font names. Each table entry contains a font number (stored in a 16-bit integer) and a font name (stored in a Pascal string).This atom is required if the |
| Highlight information. The atom data consists of two 32-bit integers. The first contains the starting offset for the highlighted text, and the second has the ending offset. A highlight sample can be in a key frame or in a differenced frame. When it’s used in a differenced frame, the sample should contain a zero-length piece of text. |
| Highlight color. This atom specifies the 48-bit RGB color to use for highlighting. |
| Drop shadow offset. When the display flags indicate drop shadow style, this atom can be used to override the default drop shadow placement. The data consists of two 16-bit integers. The first indicates the horizontal displacement of the drop shadow, in pixels; the second, the vertical displacement. |
| Drop shadow transparency. The data is a 16-bit integer between |
| Image font data. This atom contains two more atoms. An |
| Image font highlighting. This atom contains metric information that governs highlighting when an |