Sy_​TextType

Defines a multi-line text.

struct Sy_TextType {
    long             item_Len;
    unsigned char    item_Typ;
    char             drwIndex;
    short            sy_pen;
    short            sy_layer;
    char             nonBreaking;
    unsigned char    paramInd;
    long             styleind;
    Coord            loc;
    double           angle;
    double           width;
    double           height;
    double           size;
    double           spac;
    short            ind1;
    short            ind2;
    long             lines;
    long             conLen;
    long             conOff;
    long             lStLen;
    long             lStOff;
};

Members

item_Len
The length of the data record = lStOff+ROUND_UP_8(lStLen).
item_Typ
Constant SyText.
drwIndex
Index in drawing order or 0.
sy_pen
Pen (color and line thickness) information or 0 if deleted.
sy_layer
The number of the fragment (layer) this element belongs to (Ranges 1 – 16).
nonBreaking
0: wrap around at dest rect; 1: wrap around at Cr only.
paramInd
Used internally.
styleind
Font style information.
loc
The location of the anchor point in the model in meters.
angle
Declination of the text baseline.
width
Horizontal size of text box in mm.
height
Vertical size of text box in mm.
size
Transformed letter size in mm.
spac
Transformed spacing between text lines in mm.
ind1
Used internally.
ind2
Used internally.
lines
Count of the lines with the current line-breaks.
conLen
The size of the full text content data in bytes.
conOff
Offset of the Text content from record start = sizeof(Sy_TextType).
lStLen
Text line starts data length in bytes.
lStOff
Offset of the linestarts from record start = sizeof(Sy_TextType)+ROUND_UP_8(conLen).

Remarks

A text record consists of a fixed-size part(the above structure) and two variable-size parts (the contents and the line-ends). The line-ends are an array of character indices into the contents. It should have one as many entries as lines in the text, plus one. The first entry should be 0, because it is the index of the first character of the first line. The last entry should be equal the last char (point after the text).

Requirements

Version: API 10.0 or later, ModelerGraphics 8 or later
Header: Symb2D.h

See Also

VectorImage