GEOS SDK TechDocs
|
|
3.2 Paragraph Attribute Definitions
|
4 Text Object Chunks
As you have seen, the Text Object Library provides a multitude of character and paragraph attributes to use in the display of text. The library also provides a number of different subsets of attributes and ways to store these attributes.
A simple text object may only need a 16-bit record (such as
VisTextDefaultCharAttr
or
VisTextDefaultParaAttr
) to store its text attributes; a highly complex text object may need a chunk array of several 30+ byte elements. The manner in which these attributes are stored is specified in the
VisTextStorageFlags
of the text object.
Code Display 10-15 VisTextStorageFlags
typedef ByteFlags VisTextStorageFlags; #define VTSF_LARGE 0x80 #define VTSF_MULTIPLE_CHAR_ATTRS 0x40 #define VTSF_MULTIPLE_PARA_ATTRS 0x20 #define VTSF_TYPES 0x10 #define VTSF_GRAPHICS 0x08 #define VTSF_DEFAULT_CHAR_ATTR 0x04 #define VTSF_DEFAULT_PARA_ATTR 0x02 #define VTSF_STYLES 0x01
VisTextStorageFlags
are ignored. The large model is a highly complex text formatting tool; you should avoid it entirely until you are familiar with other aspects of the text object.
VisTextDefaultCharAttrs
. If this flag is not set, the text object will use the larger
VisTextCharAttr
structure to store its character attributes instead.
VisTextDefaultParaAttrs
. If this flag is not set, the text object will use the larger
VisTextParaAttr
structure to store its paragraph attribute.
GEOS SDK TechDocs
|
|
3.2 Paragraph Attribute Definitions
|
4 Text Object Chunks